Here is a goal: To keep a cake from sticking to the pan when it's done cooking.

Which way makes more sense to accomplish this goal?
The pan should be sprayed with vegetable oil spray and covered with a thin layer of white flour so the cake won't stick to the pan when it is finished.