Translations:Extension:Scribunto/Lua reference manual/1334/en

For relational operators, the metamethod is only used if the same function is specified in both arguments' metatables. Different anonymous functions, even with identical body and closure, may not be considered the same.