Am I not confident or what?

So I have a problem where any girl I see I always compare myself to them, I always say oh I wish I had this and this or she has better this and this so I’m not better or not pretty enough. I need some tips on how to stop doing this because I feel so ugly and I can’t stop.