The question you need to ask yourself is WHY you are comparing yourself to others. Do you want to be them? Do you think their life is so much better than yours? Do you want to be them, instead of yourself?
Everyone, at one time or another has compared, I think it's unavoidable. What you need to remember is that, even if you know them well, you don't know everything. I don't believe anyone's life is perfect, there are always problems that you may not know or see. Comparing yourself to someone else is a waste of time, because chances are that you are comparing a delusion, what YOU see about them, not necessarily what's real.
You are who you are. Change what you don't like that you can and own who you are because you are unique and that's a good thing. It makes you an individual human being and regardless of how you feel about yourself or the negative things people may say about you, it makes you worth knowing, it makes you valuable.