The better way to deal with having to swap two items is to ensure they end up in the right spot in the first place. Seeing a 'swap' is usually a sign of something being wrong a bit upstream.
I guess you can make an argument that the best way to get an array sorted is to have the array already sorted, but that sounds as "the best way to calculate the length of the hypotenuse is to just measure the hypotenuse, and Pythagoras never realized it was a problem upstream".
Still, it's a neat trick.