Windows Phone really had the opportunity to be this. I still don't understand the strategy behind it all, they didn't so much fumble as they violently threw the ball to the nearest ditch.
WP 7 only lived from October 2010 to June 2012 when Microsoft announced that no existing devices will get WP 8. The forced obsolescence was absolutely brutal.
Windows Phone, had it survived, would probably have gone even more locked-down, user-hostile and corporate than Android such that it would have provided no meaningful alternative.
Look at how MS treat the poor souls still stuck on Windows 11, now imagine that on a phone with hardware-firmware-OS vertical integration.
The real alternative opportunities were FirefoxOS, Ubuntu Phone and Maemo. All perished in the face of app-store lock-in.