Maybe you can try a logic similar as this post : Remove duplicate geometries
this script find nearest elements and group them (and finally select only 1 elements from each group).
Default is set to 10 units, you can change it to the proximity you want.