What you say about the conservation of energy & mater is certainly true. At the same time, switching to electricity from burning gasoline does offer some real advantages.
I'd be very cautious at believing any article that claims EVs are worse for the environment than internal combustion vehicles. Many of them are the indirect result of propaganda from Big Oil. This has been directly modeled by the propaganda from Big Tobacco, years ago, that swore no link existed between smoking and lung disease.