undo non-improvement to Max, Min, and Nearest

Turns out the doubled comparison is not a significant decrease in
performance compared to any alternative I could come up with that
avoids it.  Reverting.