Gracefully handle non-hashable connection comparisons