Fail! Yahweh commands genocide

Duet 2:32 So when Sihon came out against us, he and all his people for battle at Jahaz, 33 the Lord our God gave him over to us, and we struck him down, along with his offspring and all his people. 34 At that time we captured all his towns, and in each town we utterly destroyed men, women, and children. We left not a single survivor. 35 Only the livestock we kept as spoil for ourselves, as well as the plunder of the towns that we had captured. (Moses is telling the account of King Sihon of the Amorites mobilizing his entire army to attack the Israelites at a place called Jahaz.)

Deut 7: 1 When the Lord your God brings you into the land that you are about to enter and occupy and he clears away many nations before you—the Hittites, the Girgashites, the Amorites, the Canaanites, the Perizzites, the Hivites, and the Jebusites, seven nations more numerous and mightier than you— 2 and when the Lord your God gives them over to you and you defeat them, then you must utterly destroy them. Make no covenant with them and show them no mercy. (Yahweh is speaking through Moses)

Deut 13:12 If you hear it said about one of the towns that the Lord your God is giving you to live in, 13 that scoundrels from among you have gone out and led the inhabitants of the town astray, saying, ‘Let us go and serve other gods,’ whom you have not known, 14 then you shall inquire and make a thorough investigation. If the charge is established that such an abhorrent thing has been done among you, 15 you shall put the inhabitants of that town to the sword, utterly destroying it and everything in it, even putting its livestock to the sword. (Yahweh is speaking through Moses)

Deut 20:16 But as for the towns of these peoples that the Lord your God is giving you as an inheritance, you must not let anything that breathes remain alive. 17 Indeed, you shall annihilate them—the Hittites and the Amorites, the Canaanites and the Perizzites, the Hivites and the Jebusites—just as the Lord your God has commanded. (Yahweh is speaking through Moses)

Josh 6:20 So the people shouted, and the trumpets were blown. As soon as the people heard the sound of the trumpets, they raised a great shout, and the wall fell down flat, so the people charged straight ahead into the city and captured it. 21 Then they devoted to destruction by the edge of the sword all in the city, both men and women, young and old, oxen, sheep, and donkeys. (describes the climax of the Battle of Jericho)

1Sam 15:3 Now go and attack Amalek and utterly destroy all that they have; do not spare them, but kill both man and woman, child and infant, ox and sheep, camel and donkey. (God commands Saul to completely destroy the Amalekites as judgment for their unprovoked attacks centuries earlier.)

Ironic that a "god of love and mercy" would command his people to show no mercy and commit genocide on all these occasions. He even genocides the descendants of a people for offenses they did not commit. If Yahweh was a real person, he would be arrested, tried, convicted and executed as a war criminal.