If you look at an EV versus ICE car in isolation, the EV is definitely greener. However, if we look at the whole system and process of electric energy production, gas production, battery production and disposal, etc., I have not seen analyses that compare which is actually greener. I would love to be pointed to this, as I have tried to find it! As far as I can tell from my searching, they are essentially overall the same, except that the effects are spread around in time and place.
Now, I can assume that there is a tacit argument that putting more electric vehicles on the road increases the demand for clean energy because electric vehicles tax electricity production heavier, which is not that green now. However, are electric cars really the primary driving factor for clean electricity production? Actual clean energy production is obviously extremely important.
Also, I don't understand how continually building more and more cars gets us to a cleaner future. I imagine whenever self-driving cars arrive, we'll all just be sitting in packed streets. That doesn't feel necessarily cleaner or futuristic.