Shortening is the preferred product to use for greasing a pan. But if you only have butter or oil, choose butter to grease your pan.