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.
Those alternative players never had a chance. Ideologically pure, sure, but the companies backing them are minuscule compared to Apple and Google. Microsoft would have had the muscle and the developer mindshare to actually capture enough market.