As the Maharil wrote, bread baked with a non-Jew's roast is permitted after the fact, yet if other bread is available one should eat the other bread. As the Beit Yosef wrote, once it was baked it is a complete permit, and one may buy it even if other bread is before him.