It's not about dominating your mindset. It's about recognizing that your employment is a negotiation and treating it as such. Applying to 2 or 3 other companies every other year to test the market is not the all-encompassing chore, dollar signs for pupils caricature, that it is being made out to be in this thread.
Your company is not your family. The company is loyal to you to the extent that it is contractually obligated to be. The coworker friendships that are worth maintaining longterm will survive past your time with the company.
> I bet most people don't think about their job as "giving discount on their labor"
All salaried workers would be better off if they did just that. As a reminder, Google and Apple engaged in a literal criminal conspiracy to suppress wages.