Identity trumps economics. Idealism is a political position; it's just not an economically rewarding one. It can feed the ego, though, and taking the other road - sacrificing principles for money - may lead to more net unhappiness.
Not being willing to get political dooms you to a life of both mediocrity and misery.