A group of colleagues and I are friends outside of work. We like to go out together. We found out most of us play the same online team-based, player vs player game. We added each other as friends and started playing together. Myself and two colleagues play often, the rest jump in occassionally. Let's call those two Tom and Peter. We only play non-ranked games together. There is a ranked mode in this game.
I tend to enjoy the games I play with Peter. We play together well. I'm starting to enjoy games with Tom much less lately. Tom found out I am ranked slightly lower than him in the ranked mode, while Peter is ranked slightly higher than him. Since that point, he started changing his behaviour towards me. In the office, he keeps reminding me of my low rank, even though I haven't played the rank mode since the time I was just starting out the game (so my low rank won't change and I don't care), insinuating I'm that rank because I am a bad player. In the game, he tends to make me feel bad when I make a mistake. He never does this to Peter or other colleagues and even compliments them at times, so it does feel like he's singling me out.
Tom often indirectly targets me, like "Why am I top healing while I am in a damaging role?", when the game just started, I am playing a healer role and he's playing a character with self-healing, he took some damage and healed it himself. Sometimes he targets me directly, for example after I died, he said "Of course you would die if you do that, can't you see that?" Another time we almost lost a game but an action from me got us the win after all, to which Tom said: "That was so close, but we played very well together, Peter!"
My goal is to create a nice office and gaming situation for myself again. I could refuse to play with Tom. This will improve my gaming situation, but Tom and Peter are both direct coworkers. I'll have some explaining to do. And it may not stop his nabbing in the office. I could also talk to Tom about his behaviour. But I'm not sure how to handle that.
I could block all my coworkers on the game and pretend I stopped playing it, but I do enjoy playing with my other coworkers, like Peter. I consider this a last resort and would rather not do it.
How can I make it so that I can play games with Peter and the other coworkers without Tom constantly making me feel bad?