DistanceToNearestSurface not maintaining consistent edges around intersecting objects

Distance fields are not really designed for precision things. They are to be used for rough approximations at best. If you want precision you can use a depthfade. However depthfade can only be used with translucent materials and they too have limitations.