If you are young, healthy and can practice dentistry for a long time, then it's better to grow your money by investing in stocks, real estates, or setting up your own office etc than to pay off the student loan ASAP. And hopefully, the profits you earn from all your investments will be much greater than the student loan's accrued interest amount. You also need to discipline yourself not to over-spend the investment profits on things like luxury cars, boats, gamblings etc while you still owe in student loan. Overspending is the problem that many dentists, doctors and other high income earners have and that's why many of them can't save enough for their retirements and have to work past their retirement age.
The problem with student loan is you can't walk away from it as long as you are still alive. If you can no longer practice dentistry due to an unforseeable illness such as carpel tunnel, chronic back pain that becomes unbearable, a permanent disability caused by skiing or car accident etc, your spouse will be responsible for paying back your loan and your kids will suffer. This is another reason (beside not knowing what to invest my money on) why I paid off the student loan ASAP. After paying it off, I continued to I work hard when I still had a pain-free healthy body and full of energy to work 6-7 days/week. My disability insurance only paid $5k/month, which was only enough to cover the loan repayment.....what about the kids? Who would feed them? I've seen so many parents, who are around my age (mid 40s) and already have serious illnesses (kidney failure, cancer etc)....some died of cancers and heart attacks and their kids are still very young.