Let’s not forget that oil is not just used as an energy source. It’s the basis of plastics, drugs, cosmetics and many more things, not all of which have substitutes.
There is a good book about this that discusses the problem you just mentioned [1]. Not only do we need to find a way to replace oil as energy source we also need to find a way to replace it in all the other consumables. Or at least find viable substitutes.
And most of that is lubricants and plastics. I think we can all agree that reducing our use of plastics is generally a good thing overall - we might make the switch back to more easily recyclable materials, e.g. aluminum and glass, which, although energy intensive to recycle, are almost endlessly renewable.
Not sure what good substitutes for oil based lubricants would be.