You will eventually have to pay the loan with "after-tax" money anyway. At which point, you may be in the worst situation tax wise (IRMAA, RMD, SS, etc.). YMMV.
I would dare to speculate about your idea. You may have read/heard about this idea in context of how rich people live using tax free loans! They are playing a different game: they can take more loans to make payments on existing loans until they die. Upon death, their heirs get step up basis and loans can be finally paid off using tax free money. If you can't afford to do this then this idea can backfire. This idea is questionable IMHO because unless the interest rate on the loan is minuscule, the total interest paid on the loan over the years can wipe out any tax benefits. May be I am missing something because I am not rich!
Side note: tapping into such loans is best used as a bridge loan for a few months or couple of years.