PERF: using comparison operation instead of tolerant_equals