He has considered it. He's a psychopathic fantasist. No one sane would have started this war.
But the consequences would be catastrophic. Not least that Russia would very likely nuke Ukraine to try to force a surrender. And France would have to decide whether to respond in kind.
Trump would not - of course - nuke Russia. Likely not even if Russia launched a first strike.
And it's unlikely Iran would surrender, because Iran has set itself up as a patchwork of semi-independent forces. The immediate response would be a mass missile strike on desalination plants and oil installations in Israel and the Arab states.
The absolute best outcome would be plumes of smoke all over the Middle East.
The worst outcome would be all of the existing minor nuclear nations - North Korea, India, Pakistan, Israel - deciding the safety was off, and why not?
This is the guy that ignored warnings that Iran would respond by closing the Strait of Hormuz. He was briefed on exactly this scenario and decided he knew better. That is to say he's been proved capable of making incredibly bad decisions, it's just a matter of who speaks to him directly before. One of these days it might be the wrong person.