They also have one huge advantage that no-one else besides maybe Google have - integration with Office 365: your corporate directory, email, filestore... Which means they don't even need to be the best at this kind of product. Good enough, plus the integration, is a game changer.
The one thing Microsoft really needs still is in house, industry specific layers to drop on top of dynamics, such as https://www.mtwocloud.com/ instead of depending on these third parties. Microsofts own sales teams don't know these products exist, and they have poor visibility. Enough companies won't even touch Dynamics, preferring something more industry specific.
Look at all the other things they cover in the SalesForce, Adobe, Oracle realm that automatically integrate right into the Power Platform. https://dynamics.microsoft.com/en-us/
https://docs.microsoft.com/en-us/common-data-model/industry-...
Sharepoint in real life seems to be a very complex product with few people actually knowing it. Out of a company of 10,000 people we probably have 5 guys actually knows anything about sharepoint, Why is it so obscure?
On top of the confusion, often times the only time a end user sees the word "SharePoint" is when their Office document got lost because OneDrive pooped out and it's SharePoint underneath, so then it starts whining. The only time I've seen SharePoint work well at all is at a company that kept teams of SharePoint developers on staff, and even then we still begged for a share drive somewhere (have you ever tried to store keepass vaults in SharePoint? it's a magical experience).