There is a thin difference between genocide and conflicts that leads to war.
The recent War between Israel and Iran originated from a long conflicts they had that in turn later led to disagreement and War. During a war, if the other opponent surrenders, the war comes to an end. While genocide is a deliberate slaughter of a particular group or nation due to differences.