For hot foods, the safest are generally those that are freshly and thoroughly cooked and served immediately, such as “pizza slices coming directly from the oven,” added Dr. Darin Detwiler, a food safety expert and professor at Northeastern University.