Don't compare with anyone because it will ruin your confidence. Though you have some crores of money you will not be happy. No one are given equal opportunities by god, everyone knowledge is different from others. Don't compare by just seeing how they look outside even the successful people also commits suicides they also go through lot of internal struggles which we can't see.
you can't enjoy your success if you lose your originality.
Some can grasp things fastly , some cannot. Every person is different from others , no two people can do things exactly in a same way. Everyone has some unique skill in them, some are good at studies, some at sports, some at writing. We should not lose our originality to be successful just we have to add some more skills to be successful.
Comparison for everything with other person will not benefit you any way it just leads to depression. Everyone gets a chance to success use that chance properly. No one will lead a perfect life, everyone try to make their life perfect. No person will be perfect, society always tries to point out mistakes in whatever you do.
Lead a life which you think perfect, if you want to live like other person for the whole life time you are not satisfied. Don't choose your career just by seeing others , if you do like this I am sure that you are never going to be successful .
If you want to do something which not your passion, but still you want to follow it then make as a part in your life. For example, you want to learn coding from web then I am sure for first few days you are extremely dedicated to it, after that slowly your interest towards its decreases after few weeks you will completely leave that a you don't even look at that side but when you are going to face any campus interview then you will regret yourself. This might be happened in all our lives at a point. Even the dedication levels are also different from person to person .If you have to acquire anything new then you really have to work very hard for that.
Don't think in a way that he is doing why I am not doing it ,question yourself in a way that can I do that?. This kind of questioning makes you aware of your skills.
Never compare, learn from past, pray from strength you will be successful. Never lose faith in you. Finally you will get nothing from comparing with others.