Question normal

As a resident with a few extra dollars every month, would you recommend adding to a employer sponsored 401k or 403b? I have heard some advice to instead put everything extra towards loan repayment (either paying the lender directly or putting it aside in an extra fund if you are waiting to see how PSLF pans out), but it seems like certain circumstances (like an employer match) may influence the decision. Any general advice?