IMO, an electric car, if you look at the entire supply chain from the start to the end, is far far from being "green". But no way would I try to convince a person who has an EV of that!!! For many, having a EV car is like religion. Another topic I do not get into discussions on.
Not trying to go down that rabbit hole, but there was an analysis done by Tesla several years ago. I believe the report was entitled "From Well to Wheel" which showed the entire supply chain for an EV compared to ICE. You might want to look it up.