So it can be used to repay the loan of another house. There is no conflict, just personal choice. Only when lending, most banks are not allowed to do so. When signing a contract, they will generally emphasize that the loan is used for capital turnover or operation, and there will be certain restrictions on the nature and use of the property. Different banks have different requirements for mortgage loans.
However, after the real payment, few banks will track the assets, so there are not too many constraints and restrictions on repaying the mortgage, because this is a personal behavior, as long as the loan can be repaid in time.
Of course, unless you want to pay off the loan of another house and resell it, no one will use the mortgage loan to pay off the loan of another house, because in terms of interest, the mortgage loan should be the lowest among all loans, even if the mortgage loan interest is much higher than the mortgage loan interest, so no one will generally. For such an operation, unless you want to sell another property, but you don't have enough money to repay the loan, if you want to do it as soon as possible, you will have the idea of repaying the loan with a mortgaged property.