We often measure our success against people we barely know. A psychologist explains how it affects our self-worth.