Uh Hamas and Iran have been in bed together for decades: https://amp.cnn.com/cnn/2023/10/09/middleeast/hamas-iran-isr...
That you don’t know this seems to indicate you might know less about this conflict than you believe you do. Your further contentions that the US could magically wave a wand and make Hamas disappear confirm it.