Micro-optimize a comparison