It's important to note that electricity is 21% of the World's energy demand, according to the IEA[1]. This implies that if we could 10x solar, and figure out how to convert some of that to liquid fuels with decent efficiency, we could become sustainable for all energy. [1] https://www.iea.org/world/energy-mix
For example, you're counting all the energy in the gasoline that gets loaded into a car, not the useful work that the gasoline actually produces. Gasoline gars typically are only able to convert 20-30% of their fuel into propulsion.
Counting the energy in the fuel loaded into engines is like counting the amount of energy in the sunlight hitting a solar panel.
Similar things go for heating by the way. A modern heat pump often has a coefficient of performance of around 3x, meaning that for every joule of electricity you put into the pump, you can heat up a house with 3 joules of heat, so 3x as efficient as heating the house with combustion.