Use Mode#ocde, not #name, when doing lookups, comparisons, etc. [Fixes #66719280]