Educated men usually want equally yolked women that’s why doctors usually marry other doctors, if you’re actually adding value to yourself in that time then you shouldn’t have a problem being compatible to a man of your worth, but a women’s biological clock is very real so be precarious of your time.
Most likely this sort of marriage is not about income level but because of the opportunity that is already there in medical school. It takes years of learning and you are bound to meet someone through those years of your studies at the school. It makes sense to go with the chance.
Studying medicine can be a lonely experience for its long duration of schooling. It will be tough to start finding a mate after school is over. You are 30 plus by then or very close.