This is what HasanAbi mentioned the other day. Betting on AI to do a job (especially if it fails to replace it) is a double economic whammy. You get rid of original people who did the job, and then you don't have funding for other things (also includes people) because you need to recover the AI costs.

Collective delusion about AI (or similar craze) can be large enough to actually tank the economy.