I read somewhere about the Prius though taking much more energy and thus CO2 t build and also that it's batteries contained a rare metal that is controversially mined in Canada.
Also what people are missing is the huge headache and cost and pollution of used and discarded batteries.