Earlier quoted context omitted.
Having debt is not the worst thing in an inflationary period. The inflation reduces the value of your debt.
This is true for investment debt like real estate. If you're taking on debt to pay for basic necessities because salary rises don't match inflation it's an altogether different situation.
But if you take loans in 2015 dollars and repay them in 2022 dollars, you are better off in terms of repayment by having a lot of inflation during that period. It doesn't matter what purpose you took the loan for.