I think it is an experience in learning new tricks. If you speak up, some (many?) people will make it worse for you. But it can be case dependent. Try and get some detachment and think it through, ask someone you trust for their opinion. Also, consider that others are also observing this behavior and if you do not react, they will be sympathetic towards you and things do happen behind the scenes.
Often, poor behavior is someone just taking out their frustrations on another or just part of the system. Either way, see if you can come up with lots of hard core coping skills that will give you a teflon hide and a backbone of steel. Try this: If someone gives you sh&t, look at it as their pathetic problem. Be detached, observe their behavior like you are a journalist covering an interesting news story. Take notes, consider why someone would behave like that. But don't react - if you can help it. If someone hassles you, act like you don't notice, smile and come back stronger. Ask them for feedback, stuff like that. Play dumb, ignore the digs.
People in medicine can be very petty and cruel, it's often not worth it to try and make things fair. The best thing you can do is learn from it and make yourself stronger - you will come out a winner. And remember, it's never worth it to wrestle with pigs, you get muddy and they just have a good time.