Microsoft spent two decades preparing to pivot Bing. Then ChatGPT happened.