Start with the problem
WordPress remains a good choice for many editorial websites. Do not migrate just because another stack is fashionable.
Look for constraints
Complex integrations, custom frontend behaviour or recurring plugin conflicts can justify a different approach.
Consider the trade-off
Headless architecture gives developers flexibility but introduces separate content and deployment systems.