You should definitely ask the PI for a rec. If she feel unable to write you a good one, she should decline right off the bat. Otherwise, don't worry about it. She knows you in more ways than the lab (because you've aced her classes) so I see no reason why she would take the grad student's word over yours.
And if you want to give a middle finger to your grad student, just get into med school period. She'll never know what letters you used to get there. Or you could just actually give her the finger.