In this case, "doing anything stupid" includes equality checks. This is the sort of footgun that a huge number of people are going to run into.