When the tech job market and startup ecosystem is weak, HN will say you shouldn't do a PhD because of the cost of living and the worrying job market once you get out.
When the tech job market and startup ecosystem is strong, HN will say you shouldn't do a PhD because of the opportunity cost and the attractive job market that'll pay six figures to anyone with a pulse.
I have no hate for PhDs or aspiring ones, but I can't relate to someone who would brush past either of those two arguments you cited without some very strong counterarguments on how they will work out supporting themselves and paying back those enormous loans.
The assumption that you'll be able to find such a job is exactly the big question mark.
It didn't lead to a job, you mean? There's a lot out there to be gained from education other than getting a job afterwards.
It shouldn’t be surprising that people are putting a premium on financial stability these days.