Determines whether a sequence contains a specified element by using a specified IEqualityComparer{T}.