The problem is that replacing oil and gas is not as easy as we think, if not impossible. We can only reduce our dependence on them somewhat, but we cannot replace and eliminate them completely.
Like coal, they are not being eliminated completely, we are just reducing their use. They are still used in many countries and in industries such as steel and cement because they help reduce costs significantly.
I like when you said "replacing oil and gas is not as easy as some people think" oil and gas is still very important infact it's plays an important role in human existence since it's a mineral resource however instead of replacing it totally there would be alternatives for instance there's fiat and there's Bitcoin, Bitcoin won't completely replace fiat but would serve as an alternative, that's how it would be concerning oil and gas and other energy resources in the future. That's why not everyone is buying the idea of electric cars currently cause they still believe that petroleum powered vehicles are still very useful, maybe in the future their use case would be minimal but they won't be completely eliminated.