Comment by eitally
This isn't universally true (and I'm saying this as someone who's been laid off three times in my career). When searching for a job, it's important to perform due diligence to ascertain whether the company is on solid footing, their strategy makes sense, and your role will be valued. But once you're there, who your boss is, including how well they mentor you and what their political clout is within the business, can absolutely make "loyalty" worthwhile because the ROI can be career acceleration (in terms of compensation, job title and also breadth/depth of experience/exposure) that goes far beyond just the direct pay when you consider the overall value.