Selection where curves overlap (multiple points) with GN

Hello there.

Imagine I have an array of curves in a grid, and then I have another single curve aligned on the same y:0 plane. I need to place points to all the spots, where these two overlap.

I tried converting the curves to points and then I wanted to make a selection by comparing positions, but I can’t find a way to compare between two different curves. I managed to make this work for the case when there is only one intersection, by converting the curves to mesh and then using a boolean mesh intersection operation. But I need this to work for multiple points too.

I’m testing the For Each Element zone, but that also doesn’t seem to work yet.

Any lead will be greatly appreciated!

For now, I have one solution with Raycast. But if there were other options, I would be super interested to look into them.