I'm not concerned about the performance, I'm concerned about the correctness and clarity. The assertion can easily get out of sync right now by changing either the markup or the first selector. Storing a reference makes it clear that we're checking for the same element, and helps future-proof against changes.