This was solved by Marko Falke here after days of sleuthing and bisecting. Looks like the underlying problem for this is good old c++ not having a canonical order for argument evaluation. Evalaution may work differently on different platforms, assigning a different name.
View quoted note →
[PATCH] tree-object-size: Deterministic SSA generation [PR123351]