How to find other curves with the same geometry?

Using Rhinoscript (Python).

If I have a curve that has not been added to the doc.Objects list yet, how do find any other curves that have the same geometry? I want to make sure I don’t duplicate an existing curve.

You can compare geometries: