Replace `compare(a, b) == 0` with `equals(a, b)` in aaA.