Of course, avoid suffering as much as possible. But even you have to agree that one cannot simply avoid all adversity.
Even though it would be nice to have a skip button, the reality is that we do not. So the job of philosophy like above is to make such moments bearable. It is almost pragmatic.
