I have several metal baking pans – 8x8s, 9x9s and 9x13s. I’ll never purchase again. It’s glass for me. Reason: metal rusts. Glass doesn’t. So much better!
And glass ones have a much higher chance of having lids. I don’t think I’ve come across metal pans that come with lids. But glass ones? Very easy to find some with lids. Things with lids freeze better. Things with lids stack better. Things with lids keep better.
So, for me, it’s glass pans. With lids.
It’s the only way to go. (If only I could find some glass bread loaf pans that have a lid. Then I’d be in heaven.)