Which way is better needs to be considered according to the actual situation of the individual. If you have enough funds, you can pay off the loan in advance, which can avoid subsequent interest expenses and improve your credit rating. However, it should be noted that some loan contracts may charge extra fees for prepayment.
If you don't have enough funds to repay all the outstanding loans at one time, you should repay them on time and as planned. This can maintain a good credit record and will not be punished by default fines.
In short, when choosing a loan product, you should evaluate it according to your actual situation and choose the repayment method that suits you best.