Also, professors are so often in no position to offer genuine advice. They often have massive conflicts of interest which they do not disclose: funding sources, requirements, and plans.
Find someone who got a PhD and works in industry, or who got a PhD and works in an unrelated field, or someone who didn't finish their PhD. More viewpoints will give you a better picture.
Every faculty member I spoke to in undergrad told me very clearly that a PhD was bad for my career, enormously stressful and risky, and led to a faculty job search that was likely to fail. I was told not to pursue it unless I desperately wanted to be a faculty member. The most common advice I got was "don't do it".
This wasn't because I was a shitty candidate. I was accepted to four of the top five schools.
It's a mixed bag whether you will get good advice I guess.