Enhance comparators to not compare id values