Electricity is far more expensive than gas. I would even factor the cost of not having a gas line when choosing to purchase a property. Commercial dryers, such as in hotels, are also gas. Actually, the only time I’ve seen electric dryers are in apartment buildings too old to have been hooked up with gas lines.
That's usually only if the gas is natural gas, and that's not available. Even then, "far more" can be misleading.
My experience in California is that it's on the order of 4x cheaper than using resistive heating in a residence (i.e. buying naively from the utility at retail rates).
My latest PG&E bill shows "procurement" costs (which I assume are the wholesale energy-only part of the bill [1]) of $.009-$.01/kWh [2], and, IIUC, wholesale electricity is about 4x that.
This is to say that an efficient enough electric heat pump (which I believe is plausible for whole-house heating, not high-temperature use cases like a dryer) could at least get close to gas in operating cost.
[1] only about 1/7th of the retail total, something which would likely surprise most consumers. This seems true for electricity, too, where, IIRC, the energy costs $.04/kWh, but PG&E charges upward of $.24/kWh at the highest residential "tier".
[2] converted from $/therm using 29.300111111111 kWh/therm