In 2003, I had a vigorous debate with someone advising their nephews not to go into CS because outsourcing to India would commoditize it.
I don’t know if the AI stuff will play out similarly, there are some differences.
But it seems to me there is an infinite amount of software to build, and when we increase the productivity of software development, we just build fancier software, faster.