A metal baking pan is better for most recipes because it heats evenly. A glass dish is an insulator rather than a heat conductor, so it is slow to heat up. This can cause the food to heat unevenly. By the time the middle is hot, the outside may be dry and overcooked. However, glass does keep the dish warm longer.