I wish I could stop caring about my partner's appearance all the time.

Whenever I see a man prettier than him, I think how much better it would be if I dated someone prettier, it's like I deserve someone better. I feel horrible (and I know it's a really horrible thought) does anyone have any tips to stop thinking like a selfish and superficial person?