It is on the way out, but there are several economies in Europe (such as Poland) where coal is the dominant energy source (I think it's around 70% in 2021). Even in Germany, where it's significantly lower, it's around 25% (lignite + anthracite), and I'm concerned that number might be stubborn -- it even went up in the last year. Combined cycle natural gas plants can pretty much cut in half the ghg emissions of power generations, which in my mind is a victory. I think it makes sense for the time being to bless investment in natural gas
as long as it is replacing coal or petroleum-generated power.
The other thing to consider is that as EVs become way more widespread, the demand for electricity will go beyond current usage and that power needs to come from somewhere. It think it's unclear that renewables will be able to scale up fast enough. The GHG savings from going from a petroleum-powered car to an EV car powered by natural gas-generated electricity is still substantial.