My logic is what's most favorable for the refugees. Somewhere close, well-resourced, culturally similar, and ideologically welcoming. That's wealthy Arab nations. Not a country across an entire ocean already dealing with immigration disputes and that's currently grossly under-resourced for the 500,000+ South American refugees that showed up in the last two years.
Your logic seems to be more concerned with who gets punished. Refugees aren't a beatstick to punish your perceived villain with. I know you want justice but these moral arguments are futile because any number of them can be made depending on your perspective. Iran helped cause all this because it propped up the groups and systems that contributed to half of this conflict - and all for their own personal gain, not for the Palestinian people. Similarly, America helped cause this because it propped up the other half for their own gain. Saudi Arabia and the Gulf states helped cause this because they were the ones who moved to normalize relations with Israel, thereby throwing the plea of the Palestinian people under the bus..which Irani-backed terrorists used as grounds for this conflict. You could blame the Europeans for drawing garbage post-WW2 boundaries. You could blame the pre-1948 European and Arab antisemitism (the Nazis, Jaffa riots, Hebron massacre etc) that was used to justify Zionism. You could blame Zionism itself because of its perceived illegitimacy.
Pick whatever villain satisfies your conscience. But in the end, the only people who deserve our attention are those who suffered. And the best justice we can hope for (if one is to believe in the very idea itself) is that those who have suffered get stable lives again.