lmao lets be honest, Iran has made it very clear they want to destroy israel. I don't think they need much of a capitalist or imperialist intertest for them to go to war with them.
Perhaps they do, but I believe them to be smart enough to avoid that, it would be a stupid move. They are closer to north korea who claim to be aiming to destroy the US, but are really just taunting to demonstrate their dissuasive capacities.
Israel's goal, on the other hand, is much more ideological and expansionist. They want the entire region and if they have to genocide entire population, they will do it as they know every western leaders (with exceptions) will swallow their rethoric.
Iran is closer to reacting where the other two are actively pushing the domination