You just forgot one big factors are
1. Drill, either ocean or land
2. Pump oil
3. Transport oil to refinery
4. Produce fuel
5. Recycle left products from oil
6. Transport to distribution warhorse
7. Transport top gas stations
8. Pump this fuel to car.
Just drilling are killing environment.
Where: Lithium sits on top of the land, like in the Bolivia. Lithium battery is recycling very clean process. I know those cars are maybe is not perfect but in the few decades from now, we will have more electric cars than gas or diesel.
I don't see the reason to buy diesel sedan, since gas engines do almost same mpg as diesel. The diesel trucks are still in the business.