"It feels like my brain finds a way to do something else and avoid painful situations like boredom or hard work."

You just described ADHD.