EVs are a lot more efficient for energy use, even carefully counting power generation and transmission costs, than ICE engines. Economies of scale is power plants is why we have power plants and not everyone powering their house from their fireplace or some local generator. Carnot efficiencies, etc.
EVs are even more efficient in terms of pollution / CO2 emissions than ICE cars. This used to be 100x better IIRC, but it’s been a while. Again, pollution control measures can be much more consistently enforced and cost effectively implemented at large scale plants than in individual cars. You don’t want to carry around your scrubbers with you when you go to the grocery store, do you?
If you’re going to count battery costs, transmissions, etc, for EVs (which you should), don’t forget to count the gasoline distribution network costs, engine repairs and maintenance (EVs are much better to maintain since they’re not using controlled explosions under the hood for power), and maybe a couple of multi-trillion dollar foreign wars to keep the oil supplies flowing if you want to go that far.