Depends, if you are turning that electricity into heat using a heat-pump you might win on most situations (maybe lose if the weather is really cold outside, unless you add geothermal loops, but then its a lot more expensive to make)

No it wouldn't depend. Electricity generation and electricity transfer has losses. Gas transfer has loss only if there is a leak.