Use pointer_equal instead of a bespoke predicate.