Might still have something to do with the order the compiler outputs the bytecode in. Try the DISASMSCRIPT BlueprintName command in the editor console and see where the output differs.
I believe it runs both, which sets it to false and then prints, have you tried putting a string after the Set to false that says for example “Setting to false” and seeing the order of running?
Also why are you separating the inputs like that if they branch at a boolean anyway?