This doesn't quite line up for me. Ballmer, for his lack of technical foresight, managed an incredibly profitable business. People act like anybody could have just stepped in to milk Windows and Office for all they were worth, but the focus and execution are easy to scoff at in hindsight. If MS had focused on mobile, who's to say they would have succeeded? And perhaps in the process of losing, also ceded dominance to an upstart in the office software space.
Pichai may not have capitalized effectively on the impressive AI investments Google has made, but he has steered innovation in newer directions like AI and cloud. Technical victories, but questionable business decisions.
I think one possible moral here is, sometimes the best opportunity is the one you don't take.