Hiring managers have a job to do: find the best candidate for their company. Their advice will naturally be biased towards what benefits their organization, not necessarily what benefits you.
Many PhDs fall into the trap of emphasizing the length of time they spent on a project to highlight their dedication. While perseverance is admirable, it’s the results that matter most to employers.