If there's only 1 comparison, it's much faster to just use ==
Here, you're allocating a list, iterating over the single element in it, and then calling ==