Optimized matcher's comparison.