I would bet on Alphabet for the long term, the original inventors of the paper, together with DeepMind.
But chatgpt like tech could have an effect on their advertising income.
The question would be if it affects their advertising or if it actually adds a service to sell to their pool.
If it adds a service to their pool, both Alphabet and Microsoft could be winners. But it takes a huge amount of profits/revenue for a service to have any affect on the stock price for both of them.
Additionally, AWS and Meta won't stand by. We've all seen how much Meta is prepared to fund Zucks vision and that's transformers now.
They even released one before ChatGPT.
https://www.technologyreview.com/2022/11/18/1063487/meta-lar...
Additionally, besides the impact, it's possible that it's not going to be as profitable as one would expect ( eg. because of price pressure due to competition)