Text this: Sharp thresholds limit the benefit of defector avoidance in cooperation on networks