Every time I hear or see this I think to myself: The Amalekites, Midianites, original inhabitants of Jericho and of Ai would all probably have a minority opinion on this statement.
God is God and is to be obeyed.
You do realize, don’t you, that Scripture declares plainly and repeatedly, “God is love”? 1 John 4:8 & 16