If it were that simple we would have unlimited free energy by simply using heat pumps to power steam turbines.
I don't think heat pumps can generate very high temperatures efficiently.
Resistive heating is 100% efficient by definition. There is almost no energy lost. the only loss of energy is light generated.