You are going to have to write your own custom code to do this.
Objects in AutoCAD are only exactly equal if they are entities with exactly the same properties, (ex: layer, linetype, points, orientation).
Here is an example:
You want to compare two polylines, and define them as similar if they are only different in orientation on the xy-plane. Then you would need to rotate/mirror one of the polylines in code before trying to see if the points line up. However, the two polylines could still be the same, since point1 on one polyline doesn't have to be point1 on the other polyline.
You can see how complicated this is getting, and I didn't even take scale into account.
Anyway, this is essentially why comparing two objects defaults to comparing their memory address (or the objectId in AutoCAD, I think). Autodesk does not have support for what you want, and it seems to me that it may be better to get your input through another method, maybe via user input?
Good Luck.