HN commenters always seem to miss the point with WP in the way that nerds often miss the point about much commonly used tech.
Namely - it isn't the tech stack that determines the success of a consumer product.
Why this continues to be so hard to grok has always amused me. It's a blind spot in many tech people.
WordPress doesn't dominate market share because it's really well made. It dominates because it's easy to use. If that's changing, it's changing because something else is becoming easier to use...
I’ve been working in WP for over a decade, and I think you’re missing a key point, which is:
It dominates/dominated because it was the default easy website builder 15 years ago, and it’s been coasting on that status ever since.
It doesn’t seem to me like WP is easier to use than an LLM. It’s debatably easier to use than Shopify, which has its own problems.
Using WP for anything more complex than a blog can actually be a long time hindrance of developing an innovative or even high quality non-innovative product. It's no fun shoehorning a proper database schema into WP's idea about "posts" and "pages", and it almost never works well. That is of course, if you are building the actual product using WP, not if your business frontpage is done using WP. That would just makes you look silly.
Fortunately, these days it is easier to migrate away to other stacks or technology, that is more appropriate for any serious business.