Pivot to what exactly? Suggesting that they just "pivot" is like a rich person looking at the family living out of a cardboard box under the bridge asking: "Why don't they just get more money?"
Sure both Yahoo and AOL must have talented people working there, but that's kinda useless if you don't make them work on profitable projects. Finding the profitable ideas is the hard part.
If you have equal changes of pivoting in any given direction and use a random number generator to choose which direction to go in, it's called Brownian Motion.
A startup I worked for was acquired by AOL, all the good engineers left as soon as possible. Bureaucracy, lack of any vision, slow at everything. AOL was a media company, not a software development company.