I'm of the opinion that no matter the level of cartoon villainy the oil industry is accused of - they're most likely guilty, but there's an inaccuracy here:
In hydrocarbons the majority of energy comes from the oxidation of hydrogen.
We should get rid of coal first, as it's irredeemable in this regard and methane second, as it's a greenhouse gas which tends to leak, but it's theoretically possible to burn hydrocarbons and turn the CO2 to coal and leave it like that with a net energy gain - it's just hugely impractical compared to not burning them in the first place.