OP, I agree with the suggestions that you should either use your money to establish an emergency fund (EF) if you don't already have one, put it toward your tuition, or some combination of both. I say this for three reasons:
One, the first rule of getting out of a hole is to stop digging. Every additional dollar you borrow is going to be more than an additional dollar that you have to pay back. So whenever you borrow money, that compounding of interest is working against you instead of for you. Thus, your goal should be to minimize your loans as much as possible.
Second, you will have unexpected expenses that come up while you're in school, because that's life. To have no cushion (ie, an emergency fund) is basically just asking to meet life's vagaries (car breaks down, need unexpected medical care, etc.) by taking on even more debt (such as putting it on a credit card). Ideally, you should have at least three months' worth of expenses in your EF, and six months would be even better. But don't go below three months worth of expenses in your EF.
Finally, on a more philosophical level, you are not in a position to be investing yet, because you don't have any real savings yet. Investing is not guaranteed: you can lose money as well as earn it, especially in the short term. So you need to be on a secure financial footing first before you start investing. I know it's hard to wait, but if you're going to professional school, the concept of delayed gratification isn't foreign to you. When you come out of medical school, and you're able to cover all your basic necessities as well as any unexpected expenses, and you still have a surplus, then you can start getting serious about investing.
Think about it this way: how would you feel if you invested that $10,000 and the stock market crashed and you lost half of your savings or more practically overnight? Right now, you aren't able to afford to lose $10,000 because it's all the money you have in the world. But as a resident or especially as an attending, you will be able to stay the course without having to sell low in a market crash, because you will have reserves and enough earning power to wait for the market to rebound. Does that make sense?