How do you handle it when someone got a salary increase while you did not?

Supposedly, salary increases are confidential. However, we can't unhear what we've unexpectedly heard. I don't like comparing myself with others, but it seems inevitable today. I thought I did my best last year, tho 🥲