This is a mistake that I find myself making all the time:
It makes itself into a really subtle bug and many wasted minutes.
I can't think of a case where length(x == y) is preferable to length(x) or length(y), unless there's some weird coercion going on and that should be made explicit anyway.
Therefore it seems like a good candidate for a new linter.
I don't really know what to name such a linter... I also wonder if maybe it's good for an umbrella linter like common_mistakes_linter(), though I can't really think of other good candidate rules for that off the top of my head. see comment below