Being content and confident in your relationship with God will keep you from falling into the trap of always comparing your self to others.
Covetousness is the result of having no contentment in God. “Keeping up with Joneses” strips you away from the contentment found in your covenant with Him who is the Giver of every good gift.
Learn to enjoy your relationship with God in Christ and serve Him with gladness. Seek Him first and you will find that everthing else will be added to you.