If you’re buying an asset that makes you more money (whether through appreciation, cash flow/dividends, or tax benefits) than it costs to borrow (paying down your principal and interest while more than keeping pace with inflation), you can make a legitimate argument to go into debt to invest in that asset.
If you’re going into debt to buy something that doesn’t make you money, you’re giving into your inner child.
Only borrow money to buy things that go up in value. Otherwise pay all cash for it or not at all.