I think any higher level class will prepare you for the rigors that await anyone on the path to be a doctor. The discipline that is require to excel at advanced classes lay the foundation of commitment that will be demanded of you to achieve your Doctorate in Medicine. Good luck to you!
Any advanced class helps. A lot of medicine is okay, I have A symptoms, B symptoms, and C symptoms. What does this mean? And then they pull it together from there.
Math is about solving problems. It’s a process that teaches you how to think in a particular way. IMO it is valuable only when coupled with things that force you to use your imagination also. In the the real, practical world problems are solved using technical skills and ingenuity. That takes math type skills and creativity. To be a good doctor you’ll need to cultivate both.