How do you not become discouraged? You don't have your identity in doing better than everyone else. And you don't have your happiness in how much money you have or in what you can buy.
And how do you do that? Aye, there's the rub. I think you do it by having your identity and your happiness somewhere else. You need more than just "not there". You need a specific somewhere else.
For me, it's in Jesus Christ and his love for me. (I recognize that most people here won't grab that as their answer...)