The best way to deal with pain is to navigate through it.
Finding a way to navigate through pain allows you to learn from it and to know how to avoid that sort of paining from happening again.
Running from pain is only a short term fix and will often only make it worse when you do have to deal with it.