Now go and strike Amalek, and utterly destroy all that they have, and don't spare them; but kill both man and woman, infant and suckling, ox and sheep, camel and donkey.
In other words, if you're rebelling against God, that's just as bad as if you were into witchcraft. If you have a stubborn spirit, you're no better off than the person who is worshiping an idol. This business of rebellion and stubbornness is something that God is not pleased with in our lives. Rebellion is just as bad as witchcraft. Stubbornness is just as bad as idolatry.