If we start telling people what they can and can't use legitimately-purchased energy for, we go down a dangerous path very quickly. We might as well tell people what they can and can't use wood to build, or what they can and can't use an internet connection to transfer (i.e. net neutrality).
If you purchase gasoline, it's not my right to tell you what to do with it, insofar as it doesn't create additional externalities from that point on, like if you pour it in a river or something. You legally own it now, you get to do whatever you want with it. Same with wood, same with internet bandwidth - this is generally how private property should work.
The burning in the thought experiment is actually the least bad thing imo. The alternative is to seize property from someone who purchased that property legitimately, which is unacceptable.
As a side note, burning gasoline for no reason is pretty close to what billionaires do whenever they fly their private jets. It's a fact of capitalism, and it will exist for as long as capitalism exists.