Thank you for posting your query on Microsoft Q&A!
We do have a feature within Entra ID Governance where you can use "Access Reviews" to automatically generate a report of inactive users and carry out some actions on them, see a blog post here on how to set it up - https://techcommunity.microsoft.com/t5/microsoft-entra-blog/step-by-step-guide-to-identify-inactive-users-by-using-microsoft/ba-p/3944705
This would be the only out of the box solution that does not require automation / scripting.
Do let me know if you have any further queries, I would be happy to help!
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
Kind Regards, Donal