Let’s say I accidentally bought myself an Xbox game but I don’t own an Xbox, how would I play such game and/or what do I do with it?

Let’s say it can’t be returned nor given to someone else, because it’s not a physical game but rather digital.

Let’s also say that next time I need to read instructions before clicking on things.