As I’m a little concerned that the basin selection might not be perfect and make a weird trench around the edge of basins, I would dilate(expand) the selection a little bit between deselecting the parts where I don’t want basins filled and applying the basin fill itself. Hopefully, this is all somewhat clear.