With regards to generative AI replacing jobs, it seems to me that AI is best at replacing jobs I have a layman's understanding of, and AI is no good at replacing jobs I have a professional understanding in.
For example, I am not a lawyer or doctor therefore it seems trivial to me that AI will replace much of what lawyers and doctors do. Both boil down to reading a libraries worth of information and then making sense of it right? Bam, easy for AI.
However, I'm a professional engineer and I know how extremely complex and difficult computer science is to get right, especially at scale, therefore I'll eat my hat if in 10 years you can write "Create a facebook clone that can support 500 million simultaneous users" and the AI does anything but hallucinate nonsense that won't work. (There's also the reality that there is far more to large scale software than what can be typed into a computer or repeated by an AI, but hey, details).
I'll also point out that 10 years is not so long. 10 years ago Elon Musk told us AI was replacing driving and taxis. 2015 that feature was launched. 10 years later... not so much.