I'm not sure that's a fair comparison. We have plenty of energy, in the form of untapped solar and wind, for example. The challenge is storing and distributing it, for which energy dense hydrocarbons are very effective. (Even coal is more energy dense than lithium ion batteries, and that's nothing compare to oils and its distillates).
There was an interesting article discussed at length on HN recently about using electrolysis for synthesising propane, which along side the book The Material World has made me start questioning batteries as the storage solution of the future.