I understand the difficulty of the development, because it would be necessary to collaborate with an aggregator to carry out the swaps, but, first of all, you could: Enable paying the debt with the supply if both are the same token. Later pay the debt with the supply for any token. It would be necessary to have a collaboration with a dex or aggregator, put warnings if the slippage is very high, etc.