3.9 with 2Bs or 3.96 with W?

Hi guys! I am recently at a T50 public school and would like to apply transferring to T15 schools such as UPenn, Columbia, Duke, Northwestern, etc. Because of medical reason (I fell off the stairs, hurt my back, and went to the emergency room), my grade of calc3 was affected, and I might get a B, or even lower. I have got a B in my first semester in an intro CS course. I am debating should I withdraw calc3 and retake (then my GPA will be 3.96) or just keep it (3.90 then)?

Hook: I’m planning to apply for statistics & gender studies, more like an intersection. My other courses will be 300-/400- level classes in math/stat/gender studies.