One data point is that Sequence actually has a semi-hidden customization point that uses the Bool? tripartite result for containment checks: _customContainsEquatableElement:
This method uses an optional result because not every collection can provide a speed increase over a linear search, like Array. For collections that can, like Set or Range, the implementation of this method lets them provide fast containment checks even in generic contexts.