I remember over a decade ago such as in 2006 ppl thought that Google would overtake msft business by offering free ad-supported alternatives to many msft products. Hardly. Both have grown to dominate their respective industries
Had they actually tried to replace office, I think they could.
(As the saying goes, the first 90% is the easiest part)
Microsoft survived successfully and thrives today even if they don't have the leadership in may areas.