The MS365DSC https://microsoft365dsc.com/ is an extensive powershell module that allows exporting, importing, monitoring, comparing and automating 365 conifigurations.
It is a very capable and a very active Open Source gitHub project.
I just used it for comparing two configs on different Tenants, and it works very well. -highly recommended for this kind of task.