We switched to glass recently and it's great. They're more durable. They don't stain. They're easier to clean. And, this is subjective, but they just feel more substantial; it's nice in a way that's hard to describe.
These glass containers will likely last forever.
They are more expensive than the cheapest plastics, but it's buy-once, so not a significant long-term factor.
Glass is heavy, doesn't stack efficiently, sticks/grinds together when stacked, and easily chips and breaks. A full glass container is too heavy to lift safely with one hand and too heavy to carry in a backpack. Glass is slippery, and because it's heavy it is also more likely to be dropped. Drop it on a counter and it cracks or chips, leaving bits of glass in your food and sharp edges that will cut you. The purpose of a container is to _transport_ things; anything breakable like glass is a poor material for something that gets moved around a lot. A plastic container will survive long after a glass container has been chipped.
Glass is fragile, dangerous, heavy, slippery, expensive, loud, and space-wasting.
Plastic containers are light, resilient, durable, portable, compact, and efficient.
At IKEA the lids cost 50% of a container + lid; inexpensive compared to the cost of a new plastic container. I bought steel containers 20 years ago and they are still going strong expensive and better value.
They also get hot after microwaving, which for inpatient people like me is a deal breaker.
E: obviously I can spend extra effort to handle a hot glass container, but I'd rather deal with container without that property. Even with plastic containers there are some that gets suspiciously soft / weak after a few minutes in microwave, and then there's ones that stay sturdy and cool enough to handle. Half the point of microwave is convenience.
And trivets, to prevent your kitchen worksurfaces from succumbing to the fate of a myriad ring-shaped marks. This is obviously moot if you are lucky enough to have a granite worktop :)
These glass containers will likely last forever.
They are more expensive than the cheapest plastics, but it's buy-once, so not a significant long-term factor.