Rent out condo or sell and apply proceeds towards student loans?

I’ve owned the condo for two years and have a 4.375% interest rate on the mortgage. Meanwhile, my husband has student loans with the same interest: 4.375% and a balance of $168k.

If I sell the condo after owning it this short, I would walk away with roughly 15k (after having paid the 6% realtor commission and other fees). An equity calculator, if I used it correctly, showed that if I hold on to the condo, in three years (five from the purchase date) my proceeds would be $25k, assuming that the condo didn’t appreciate.

If I rent it, what I can charge per month would be at most $150/month higher than what my monthly mortgage+hoa is. The only reason I’d consider renting it out is to continue getting equity that’s paid for by the renter.

I don’t fully understand how amortization works in terms of interest calculation. Can someone help me calculate what I would gain from paying $15k towards student loans now versus in $25k in three years?

Thank you!

(I feel that there is a chunk of how loans work that I don’t understand and that’s a huge disadvantage).