expression, godan verb (-su)
distract oneself; take one's mind off things
Used when someone deliberately shifts their attention away from unpleasant thoughts or worries, often by engaging in another activity.
嫌なことを忘れるために、音楽を聴いて気を紛らした。
To forget something unpleasant, I distracted myself by listening to music.
仕事に没頭
I immerse myself in work to take my mind off things.