Quality does suffer as the hours drag on, but quality suffers more when you hand off a case (which can be quite complex) to someone else. The tired but experienced-with-this-case doctor still does a better job than the rested doctor who is brand new to the patient's case.