Depending on what you are doing with it, you might find you can use the ‘Collider’ goal with the line segments, like in this example:
This goal handles collisions between moving spheres and cylinders (or rather, capsules, since the ends are rounded). This does mean your curves need to have a thickness. If you need specific dimensions you can offset to counteract this thickness.