Glass is still the best medium, but it is relatively heavy and fragile - making per-unit costs significantly higher once all factors are accounted for (loss, logistics etc).
While it’s true that a few milligrams of plastic are burned off when cans are recycled - it is still infinitely better for the environment overall than single-use bottles.
Be the change you want to see in the world! 😉