Returns true if the two values are equal according to the compare function.
@override bool equals(Option<A> x, Option<A> y) => compare(x, y) == 0;