I have never purged while donating, but reading that thread made me think about it more. In regards to getting through class, panic can be blind. especially if dive no 5 is 1 year after dive no 4. (I am not wanting to open the refresher discussion).
I try to prevent someone in distress/panic from going to the surface. However, I know when to let someone go and not hurt myself.
The other diver initially panicked due to flooding mask. For all we know, they could have snorted water and been choking. If this was the case, purging the reg could have forced more water down.
I'll stick to handing off a reg like crd_kats described. They can purge it themselves unless they're unconscious.