Tech Debt (Not my game) is an asset now?

Could all the tech debt being introduced by AI-generated slop code actually be an asset?
For example, let’s say you got a mortgage with a fixed, low rate before inflation kicked in. The debt you have to repay gets smaller and smaller compared to the rate of inflation, while your house is appreciating as fast or faster than inflation.
Is this the case with these AI-generated code bases? Possibly, possibly not.
First, in my experience, code doesn’t appreciate. It depreciates and becomes obsolete and needs more upkeep over time.
Now, the value of getting whatever that code does today might have an advantage.
Second, this assumes that the cost of AI continues to go down while the quality consistently gets better. I can see an argument for that being inevitable, but I also heard similar arguments about the US housing market in 2006.
AI continuing to get better is the popular sentiment right now, so it feels safe, but if it doesn’t or demand drives the price up and makes it scarce, then you would be on the wrong side of this trade.
My thoughts: As much as I like leveraging tech debt, I would treat this like any other investment and make sure I don’t get in over my head.
What are your thoughts about AI-generated tech debt being an asset in this modern era?