There is actually a built-in function for comparing objects in the "Clock" window, which does not require a direct call to any functions. It is in the right-click menu, like "Make Object ID"
It will mark the object with an identifier, and then you can add a second object and mark it with an identifier as well. If this object is the same link, then they will have the same identifier. This allows you to see if they have changed / when they are being debugged.
source share