While that's true you do need to take into account the limited efficiency of power plants as well, especially when it comes to heating.
Simply burning gas to generate heat is basically 100% efficient, if you convert it to electricity first you'd need a COP of at least 1.7 to recover the energy lost while generating the electricity.
Simply burning gas to generate heat is basically 100% efficient, if you convert it to electricity first you'd need a COP of at least 1.7 to recover the energy lost while generating the electricity.