Read some of the responses, but the reality is that decisions about student loans are highly individualized and depend on a lot of factors, including your overall career plans/goals, family situation, debt burden, etc. I talk with residents about personal finance when they rotate with me, and here are the very broad recommendations that I provide when it comes to student loans:
1) You want to do everything that you can to reduce interest from capitalizing. COVID has been advantageous on this front as there has been a very long period with no accrual of interest. As soon as that ends, I would advise that you start making some kind of payments on your loans to reduce or eliminate the amount of interest that is accruing. This will kill you over the long-term, especially if you're entering residency with a high debt burden to begin with. I tell all residents that they should be making payments on loans if at all feasible. Some people may not be able to financially make those payments, but most can.
2) The question of whether or not to try and obtain forgiveness via PSLF is a complicated and personal question. First, you have to have faith that this program will still exist. Second, you have to have faith that the program will be available for high-income earners. Third, you have to you put your financial future into the hands of a fickle third party (the government). In general, PSLF is only going to be advantageous if you have a very high debt burden. I had zero faith that I would be able to take advantage of PSLF and had a relatively low debt burden, so I opted to try and pay off my loans as quickly as possible. I'm about to finish my third year out of residency and will have my loans paid off in the next few months.
3) Refinancing loans again depends on your long-term plans. If you're putting all of your eggs into the PSLF basket, you won't want to refinance as you will lose eligibility for PSLF. If you have no intention of taking advantage of PSLF, you might want to consider refinancing as, historically, you could get significantly lower interest rates, though with fed rates rising as they are, this actually may not be the case. For example, I was able to refinance my loans to a ~4% interest rate vs. the 6.9% of federal loans. Once you know what you plan to do with respect to PSLF, you can make further decisions about refinancing from there. Once you've got attending income, refinancing the loans is trivially easy - it took me about 15 minutes to fill out the application and it was taken care of.+
Keep in mind that if you're planning to pursue PSLF, you're also limiting options in terms of your future employment as you will be subject to working for an employer that meets the criteria for PSLF. Depending on your specialty and desired practice setting, this may not be as straightforward as you might expect/hope.