Mankind has been piping gas into homes for almost a century. If it was as dangerous as you suggest, we would have figured out decades ago it was a bad idea and stopped doing so forever. In fact, I think we've given it a go already: The house my parents live in was built in 1968. It still has the "
Medallion Home" doorbell on the front, proudly proclaiming it was an all electric home (although the furnace and water heater use gas; not sure how that happened). Yet somehow when my home was built twenty years later in 1988, it was judged wiser to avoid electric appliances and use natural gas for everything. Something must have happened between the late '60s and mid '80s to change society's opinion on the benefits of electricity. Or are you suggesting we were all completely insane during this time period and it was a vast conspiracy between the gas utilities and home builders?
Also, you're moving the goalposts. You cannot use a heat pump to boil a pot of water in the kithen. You cannot use a heat pump to roast a turkey or bake a cake. And solar energy cannot be used at all during peak demand periods after the sun sets without also using expensive batteries, and the manufacturing of batteries carries an environmental cost which you cannot deny.