However, there's a complexity to all this that I haven't yet resolved to my satisfaction.
If a country genuinely believes that a minority in a neighbouring country is being subjected to genocide/ethnic cleansing, should it -- as I have seen it argued when I've asked why neighbouring countries won't take refugees from Gaza -- close its borders to them because that would be "colluding with genocide"? It might be colluding with ethnic cleansing, I guess, but if the genocidaires are serious enough, then all it achieves is putting them to the inconvenience of actually murdering their victims.
Were Tanzania and other neighbouring countries really "colluding with genocide" when they allowed Tutsis in who were fleeing the Hutu genocide in Rwanda? Would the more principled stand have been to close their borders?
I can understand that the receiving countries may well have justified concerns that, if they accept the people fleeing persecution, they'll only encourage the persecutors to redouble their efforts to rid themselves of an unwanted minority but, if they genuinely think the victims face death if they aren't allowed asylum, and refuse them nevertheless, that's contrary to the UN Convention on refugees.
When I've ask this question on Twitter X it generally gets me blocked.