Technically, comparing references should return true if the references point to the same object, and the equal node is supposed to upcast if needed (unless both references are strict). You should not trust the number because not all references to the same object will necessarily return the same number. You can see some more on this
here. The effect seen there has been corrected in 8.0.
___________________
Try to take over the world!