Similar Items: Streaming Complexity Separations for Dense and Sparse Graphs