Don't believe any IDE-integrated tooling. They are notoriously wrong all the time.
Quite obviously, the Rust toolchain (including the compiler and the built-in derive macros) that have been around for 10+ years aren't so full of bugs that a trivial equality comparison on an enum wouldn't work correctly. It cannot be reproduced.
Either your IDE/debugger is misleading you, or you have undefined behavior in some unsafe code that causes weird remote action at a distance like this.
I am wondering whether you are debugging release mode, or at least with some optimizations enabled. Generally debugger is far more unreliable in this case, though this usually manifests as inability to do some actions (inspect variables, step on exact lines, etc) and not false data.