IsCoincident will only work if the edges are coincident. If they are not, you may have to try and check the bounding box of these edges and then decide this.
You can get a bounding box by:
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum