Gas is obviously far more resilient, though not immune to more extreme problems. I’ve literally never experienced a gas outage, yet power outages are routine almost everywhere I’ve lived.
>many things that cause electricity to go out ... will put out the gas too
IME, this is objectively false. I've lived in the Northeast my entire life (40+ years). We have on average 2-3 power failures lasting more than a few seconds per year. I have never in my life experienced a natural gas system failure. The pumps that pressurize the gas are themselves powered by gas, and the delivery is not in any way dependent on the power grid; also, as someone else stated, gas lines are buried well underground.
But many things that cause electricity to go out (floods, earthquakes... Russian invasion) will put out the gas too