Depends. When the electricity comes from a gas power plant, it is way more efficient, to use the heat of the gas directly, instead of heating water and steam, running through a turbine, transmit lossy overland, convert to household power -> turn the electricity into heat again.
But when you have renewable sources, it is a different story. I believe you have mostly nuclear power in sweden?