It isn't that simple. You really should know that. A battery is like the gas tank in your car. The gas tank isn't the fuel for the car.
The gas tank can be refilled. If you have an 11gal tank and you get 20 mpg then you get 220 miles on a full tank (or "full charge") if you will.
My battery (like the gas tank) can hold sufficient energy storage to get me 300 miles on a full charge.
The thing you keep bouncing around is the energy density of the gasoline and the EV battery. But even there you are being short-sighted. EV battery volumetric energy densities have been INCREASING!
Volumetric energy density refers to the amount of energy that can be contained within a given volume.
www.energy.gov
Is gasoline getting to be more energy dense over time? I don't think so. You can only burn it so efficiently.
As I understand it gasoline has about 46MJ/kg which roughly works out to 322MJ/L. A "Liter volume" of Li ion battery has about 0.2MJ/L. No one is really going to argue over the fact that gasoline is a more energy rich source than a similar volume of Li ion battery.
But the difference is:
1. You can only burn that gas once. The Li ion battery is RECHARGABLE. And that recharge can happen through GREEN TECHNOLOGY. I live it every single day. I charge on solar and drive for free. 3 years now.
2. Li ion batteries are getting to be HIGHER volumetric energy storage. Gasoline is NOT. It is at its limit.
This is how technology develops. It doesn't stay static just because you got too old to understand how the world changes.