import Foundation class Amanojaku: NSObject { override func isEqual(_ object: Any?) -> Bool { !super.isEqual(object) } } let a = Amanojaku() let b = Amanojaku() print(a == a) print(a == b)