The actual apples to apples comparison in efficiency _is_ the heat emitted by the block in my house divided by the cost of moving the block.
Here is something to read on this:
https://en.wikipedia.org/wiki/Coefficient_of_performance
Jump to "Examples" if you like concrete examples.
There is, of course, the communal thing, done in Sweden and Russia and college campuses, with a power plant and steam pipes going to apartments.
But what about an appliance for suburban America? Like, combine a gas turbine generator with an HVAC system and hot water tank (pretty sure you can buy things like this in Germany). No unsolved technical problems here. You generate electricity for your home, heat it with waste heat, and absorb temporary excesses in capacity by usefully heating water. You could imagine integrating other things too: If you need more heat than you use electricity, then you might as well use the electricity to do something high-value (cryptocurrency is a crime against the environment, but you might as well compute some hashes in your resistive heater). All this becomes an elaborate way to burn natural gas to make heat, but you get a bunch of other things out besides. The "smart controller" aspect then becomes interesting -- but even that is "just simple automation", not super-difficult AI.
Maybe logistically, the "everything is electric; electricity comes from renewables/nuclear; and heat comes from heat pumps" solution is easier in the long run?
But this more "decentralized heat engines" solution has the "advantage"(?) that it could run on biomass, which is easy to store (however, I am aware of the problems of wood pellets and deforestation).
Not if you consider the whole "indoor + outdoor" referential, in that case you will always get below 100% efficiency.
Any heat that you move into the house in the winter leaks out within the day (asymptotically), so this doesn’t become a localized runaway effect.
Something overlooked is that heat pump will leak refrigerant. It's not really not a matter of "if" but "when", physical systems fail.
Refrigerants are pretty nasty greenhouse gases.
A heat pump doesn't turn electricity into heat. It moves heat from one place (outside) to another place (inside); and can seem more efficient because the system isn't closed.
efficiency = useful work / energy input
Efficiency is not calculated relative to the best performing machine.