Before SERVER-58155, sbe::vm::genericCompare() always return false if either argument (or both arguments) was NaN.
After SERVER-58155, if either argument (or both arguments) is NaN, in some cases sbe::vm::genericCompare() can return true. For example, if one argument is {NumberDouble, NaN} and the other argument is {NumberDecimal, NaN}, sbe::vm::genericCompare<std::equal_to<>>() returns true.
The goal of this ticket is to fix this inconsistency.