One of the toughest experiences of my work life was my viva. The examiner picks at every hole in your work and you need to have an answer. Even if the answer is acknowledging it and proposing future work. It's a very useful experience, and when combined with the rest of a PhD, teaches you to be humble and accept that criticism of work is not an attack on the author. I still have nightmares about mine!