I don't disagree CO2 is a problem, however you need to consider how much energy was used to manufacture a Tesla and the fact that energy wasn't free and it probably lead to the release of a lot of CO2 before the Tesla even gets sold. After it's sold you get to recharge it using electrical power plants that are not any more efficient vs an ICE and this is probably based on fossil fuels. Then if you take into account the energy required to recycle or safely dispose of it's batteries and other parts plus the huge environmental costs of producing the materials to manufacture batteries and magnets in the first place I think it's likely the Tesla is a net loss for the environment vs an average car using an ICE.
IMO, Teslas and Priuses are not nearly as ecologically friendly as a typical small car. If you actually care that much about the environment and don't just want to look like it, you'd be driving something like a Honda Fit.