And don’t forget to factor in the opportunity cost of accruing student loan debt (which can’t be defaulted!) against lost yearly income.
Practically: no, not really.
Yeah if you're looking for more money, maybe don't do a PhD. If you're looking for the time and space to find satisfaction by working on a unique problem, then it's hard to find something that gives you that in our industry to the same degree.
I'm not sure it has to be immediately, but your point still stands, and it's often ignored by proponents, which is that merely acquiring a graduate degree does not automatically guarantee all those intangible benefits.
One has to actually secure employment with those benefits. Whether that's easier than finding employment with salary benefits instead (or in addition) seems to be still an open question.