Could Esri consider adding a new function:
EqualsMZ() - Similar to the Equals() function, but it not only tests the XY geometry, but also any M or Z values that may exist.
Related: Arcade docs: Equals() function doesn’t consider M-values
Credit for this idea goes to @DuncanHornby