OpenAI isn't giving AMD money to get AMD stock. AMD is giving OpenAI its stock (in the form of a call option with a $0.01 strike).
But if it results in their stock reaching 600$, then AMD will give back the money that OpenAI spent on GPUs as 10% stock options into AMD.
Which sounds like, no one is really investing in each other, they're both like exchanging money back and forth, where both hope to gain some extra money by propping up the AMD stock with the announcement, hoping it helps make AMD more competitive on the GPU landscape.
Did I get it right?