In addition, transporting glass is inefficient, and it is much more prone to breakages.
The real issue is the fact that every company gets to have their own plastic bottle design, with 3-4 different plastic types that have to be triaged. They typically also want way thicker bottles than required because they feel more premium.
A government that mandates a specific shared plastic bottle designed to be recyclable would be much, much ecologically effective than switching back to glass.
I don’t know if metal cans or tetrapack are better.