Those are not the same things... Glass is better for the environment, for one it doesn't break down into microplastics which get everywhere. And glass can be recycled indefinitely (minus some loss due to impurities) whereas plastic can be recycled up 0-1 times usually.
Plus the whole "it's up to consumers to solve this" is just corporate propaganda to absolve themselves of any responsibility, all the while not offering any alternatives that a consumer could pick from. Like literally, they paid for marketing campaigns to convince the public that it was our fault.
In addition to other answers, keep in mind that Tesla gets credits relative to how far below the average carbon footprint their cars are and sell those credits to manufacturers of cars with more emissions. So in a way a part of the reduced liferime emissions are "gone" before the cars drive for the first time