That's a very selective quote .. https://climate.mit.edu/ask-mit/are-electric-vehicles-definitely-better-climate-gas-powered-cars
And while internal combustion engines are getting more efficient, EVs are poised to become greener by leaps and bounds as more countries add more clean energy to their mix. MIT’s report sees gasoline cars dropping from more than 350 grams of CO2 per mile to around 225 grams by the year 2050. In that same span, however, battery EVs could drop to around 125 grams, and perhaps even down to 50 grams if the price of renewable energy were to drop significantly.
In fact, the article only really talks about Lithium Ion batteries too, and new technologies are rapidly being released (such as the CATL batteries)
In fact, many regions in other countries literally are 100% renewable now (Tasmania in Australia as an example). And, most EV owners here in Australia likely own solar panels. The MIT article is literally mainly focused on US (and if the republican's stay out of power, things will likely only swing further in the green direction).
Same thing happened in Australia. We had an idiot as a Prime Minister, but voted him out, and things have rapidly changed now.