The core of it holds. Inside an IRA, depreciation shelters nothing, 1031 is irrelevant because there's no recognition event to defer, long-term capital gain rates don't apply because everything comes out as ordinary income at distribution (traditional) or tax free (Roth), and QBI doesn't reach you. Interest is the least tax-efficient thing you can hold personally and it's clean inside the wrapper. That's why lending fits.
Three things bite that your framing skips.
Losses stop existing. If a note inside the IRA defaults and you recover 60 cents, there is no capital loss, no bad debt deduction, nothing. The tax code doesn't see it. Personally held paper at least gives you something back. That should push your loan-to-value discipline inside the IRA tighter than outside it, not looser.
Illiquidity meets required minimum distributions. A traditional IRA has to start distributing at the age set by current law, and the custodian will not distribute a fraction of a private note easily. People end up doing in-kind distributions of illiquid assets with valuation fights attached, or scrambling for cash. Check the current RMD age and rules with your own advisor, they've moved twice in recent years.
Valuation is an annual chore. Custodians report fair market value on Form 5498 every year for private assets. For a performing note that's usually the payoff balance, easy. For a defaulted note or a fund LP interest it isn't, and some custodians want a third-party opinion you'll pay for.
There's also a prohibited-transaction trap sitting right where your two buckets touch. Your IRA can't lend to a deal you control or benefit from personally, and whether a given structure crosses that line is a facts question for a tax attorney. Keep the two sides of your balance sheet genuinely unconnected.