I am not sure that it has to be so zero sum. The AI truth is probably somewhere in the middle; it probably doesn't replace software engineers and it probably won't be deleted as completely useless. My current feeling is that it's a powerful tool I'm happy to pay to use; it doesn't replace me, but it makes it easier to do higher quality work. It feels a lot like IntelliSense, or faster compilers, or getting a 32" monitor. That probably doesn't sustain the bubble, but it's something that people are going to be poking at and making money off of for a long time.
I agree that people are investing as though the world is going to run itself while the ultra-wealthy run off in yachts to compare sizes. If it wasn't AI, it would just be tulips or something. That's just how people are. But maybe they'll be right, who knows.