I cant stop comparing me and my bf

I keep comparing him to other people i find more attractive physically. (this is the worst)

I keep comparing myself to other people.

I keep comparing our relationship to others.

It makes me feel terrible but I cant stop doing it :( any advice? I know i sound shallow.