There are good arguments on both sides, so it's more of a personal choice. When I left grad school in 2011, I decided to purchase real estate instead of paying off my student loans.
My original student loan balance was $56,600 in 2011 and it's now $31,500 in 2019. However, during this time, I think I accrued approximately 500K in real estate equity. I think I'm going to buy one more property before I get serious about paying off my student loans.
I think my overall interest rate is currently around 4.5%. I paid $1,500 in student loan interest in 2018. My payment is $184/month. Approximately $114 goes toward interest and $70 to principle.