Is it worth using distinct() with collect(toSet()) : <p>When collecting the elements of a stream into a set, is there any advantage (or drawback) to also specifying <code>.distinct()</code> on the stream? For example:</p>

<pre><code>return items.stream().map(...).distinct().collect(toSet());
</code></pre>

<p>Given that the set will already remove duplicates, this seems redundant, but does it offer any performance advantage or disadvantage? Does the answer depend on whether the stream is parallel/sequential or ordered/unordered?</p>
