It is difficult to reconcile the idea of a loving God with violent actions such as genocide. However, it is important to remember that God's ways are not always understandable to humans. Additionally, it is possible that these violent actions were necessary for a greater purpose, such as preserving the well-being of a larger group of people. Ultimately, we must trust in God's wisdom and goodness, even if we do not understand or agree with His actions.