Goal: To prevent food from burning when you bake it in the oven, you can

Which of the following methods is more reasonable for accomplishing this goal?
Apply a light coat of oil to the pan so it doesn't stick to the pan and burn