I’ve a note in our codebase to avoid Curve.GetDistancesBetweenCurves
also see:
Possibly for other reasons but still, if like in your case you know the context is always curves touching on either end (or not) I’d check for that:
test the the 4 distances between ends and starts to draw your own conclusion about the relationship.