If there is a special period for identity formation, a time when life events are going to have the biggest influence on the rest of the life-story, this is it. So adversity, especially if overcome fully, is probably most beneficial in the late teens and early twenties.