Yeah agreed - you might be stuck in a job you don't necessarily like but you can stick it out for a reasonable length of time and maybe earn some good money until something better comes along by playing along but you're not going to be happy with that long term.
You could also use it as a stepping stone; be adaptable in the short term to build experience and salary, then you're in a stronger position further down the line when negotiating for the job you actually want.
Learning how to say no is a very important skill. I think it's even better for compensation to find positions in which you are an inherently good fit to create value, and then negotiate to a level of compensation favorable enough that you don't need to think about it for a while.
As the Rolling Stone song goes, "You can't always get what you want; But if you try sometimes, well, you might find; You get what you need".