In decent weather, one should not use resistive electric heat — one should use a heat pump. In decent weather, a COP of 4 is about par for the course, making electric heat a bit cheaper. So I don’t believe your assertion that “gas is so much cheaper per joule”.
Obviously this varies by what you do with your heat and the conditions. Gas stoves are wildly inefficient, but induction can exceed a COP of 100%. In very very cold weather, heat pump COP drops, so gas will win. Gas tankless water heaters are reasonably priced and can reach well over 90% efficiency, whereas heat pump water heaters need a tank, which is somewhat lossy.
But gas has a major downside (aside from CO2 and other emissions): you need to pipe the stuff to the endpoint, and a lot of communities, especially new developments, have decided that this is not worth the expense or danger.
[0] September 2025: https://www.eia.gov/electricity/monthly/epm_table_grapher.ph...