I don’t think this is quite right. If the interest rates are low enough, even the most financially savvy people will take this deal. For example, I have a friend who can easily afford to pay cash on a $1 million house, but he has a 30 year mortgage. Why? Because his mortgage rate is 2.5%. He can take his money and put it into Stocks or other investments and get a much better return than 2.5%. If he were truly risk-averse, he can even put the money in long term treasuries and make more than 2.5. At low enough rates, it always pays to have a loan. It’s (almost) free money.
Edit: at current interest rates this advice makes less sense, but even so, it could pay in some situations. For example maybe your mortgage is 4.5% but your student loans are 7.5%. Take the mortgage and pay down those loans. Obviously too much debt is bad, but not all debt.