The statement that is most likely to be correct is: thermal energy was transferred out of both cases at the same time.
Thermal energy tends to transfer out of an object (like pizza) in all directions simultaneously, although the rate of heat transfer may vary depending on the surrounding conditions and the specific properties of the materials involved (e.g., air temperature, airflow, etc.). However, without additional context about the specifics of the situation (like whether the pizza is sitting on a hot surface, if it has toppings, or how it's oriented), it's challenging to definitively determine which statement would hold true.