The thing is when gasoline is used to power a car about 80% of the energy is loss to heat and only about 20% is used to actually move the car on average. It’s worse when you are doing acceleration and better when cruising at a steady speed on a level surface.
Yeah, so you have to divide it by a factor of 5. Which still makes gasoline roughly 5 times as energy dense than this prototype battery, instead of 25 times.
Another problem is the increased complexity of fossil fuel vehicles, specifically in stuff like the engine, gears, pollution filters, etc. A fossil fuel vehicle is just intrinsically more complicated. Which doesn't directly relate to the density, but it gives electric vehicles an advantage.
With passenger vehicles, the problems have largely been solved. With motorcycles, there are still some tradeoffs on range (especially highway). With large cargo trucks, the weight causes issues with range, weight capacity, and charging times. With aircraft, there's not really competition on the horizon.
And electrification of heat production itself for climate control, cooking, hot water, industrial processes, etc. is coming along, too, on an application by application basis. (But note that the energy "lost" to heat is less of a factor for these uses.)