Refined compare