Add basic implementation of eq-or-diff