Fetching details from the dictionary...
to divert (e.g. one's mind); to distract; to relieve (boredom, sorrow, etc.); to drown (one's sorrows); to beguile (the time)
to conceal (e.g. one's grief with a smile); to hide; to shift (the conversation); to change (the subject)
音楽で気分を紛らわすことにした。
I decided to divert my mind with music.
彼女は映画を見て悲しみを紛らわした。
She distracted herself from sorrow by watching a movie.
彼女は音楽を聴いて寂しさを紛らわしている。
She is listening to music to take her mind off her loneliness.