more efficient ==
and hash
for StatStruct
#41063
Merged
==
and hash
for StatStruct
#41063