I think perhaps the horse is a better analogy.
Most people had a horse until the early 20th century. Cars started to become a thing, including electric cars, and electric trams.
Now it's mostly just the rich kids and rural farmers who have horses. Just like how you should never date a girl with a horse (I speak from experience) they'll be telling our kids not to date a car guy.
That's my Euro/Canadian perspective anyway. I can imagine if you had parents who grew up in China it might be different?
Also, Africa is being sold hard on cheap ICE cars right now. If they buy into it (and I suspect they will) the oil industry will keep pumping for a long time. I love the idea of these synthetic fuels Porsche is making, but it's probably only necessary for optics of things like F1, and WEC etc.