AI-generated code still requires software engineers to build, test, debug, deploy, secure, monitor, be on-call, support, handle incidents, and so on. That's very expensive. It is much cheaper to pay a small monthly fee to a SaaS company.
The real benefit of these types of SaaS offerings was their ubiquity across multiple industries and verticals. If a company bought Salesforce, they could very readily find employees that would be able to quickly onboard since they would likley have used it at previous companies. AI software generation is changing this as more and more software being created is bespoke and increasingly one-of-a-kind with these tools allowing companies to create software that fits their unique and specific needs.
My hot take here is that the moats previously enjoyed by SaaS companies will increasingly vanish as smaller and smaller teams can assemble "good enough" solutions that companies will adopt instead of paying giant chunks of their budget on pre-built SaaS tools that will increasingly demand more training to Onboard.