I tend to go with the “distract myself” method. Think about some song, movie, game, etc. Keeps the brain from ruminating on that shit. And usually can manage it long enough that the thought’s barely a vague memory afterwards.
Basically, the idea is: Don’t feed the demon.
I managed to do that with Abbey Road of all things, though a Round Trip example. Started the album on my way out. Paused it while doing some errands. Went home, and it finished up just as I pulled in. Of course, I had to get lucky with traffic flow, so I don’t expect to be able to intentionally repeat it.