Society has taught us not to give up. But one psychologist suggests throwing in the towel can have its benefits