Returns distinct elements from a sequence by using a specified IEqualityComparer{T} to compare values.