There is a clear cut boundary regarding the violence of taking the promised land.
The Hebrews were told to take the promised land only. (there is a clear cut boundary to the amount of land the Jews were given.)
The promised land had a defined limit going back to the book of Genesis
Genesis 15:18 In the same day the LORD made a covenant with Abram, saying, Unto thy seed have I given this land, from the river of Egypt unto the great river, the river Euphrates:
Genesis15:19 The Kenites, and the Kenizzites, and the Kadmonites,
Genesis15:20 And the Hittites, and the Perizzites, and the Rephaims,
Genesis15:21 And the Amorites, and the Canaanites, and the Girgashites, and the Jebusites.
Deuteronomy 1:1 These be the words which Moses spake unto all Israel on this side Jordan in the wilderness, in the plain over against the Red sea, between Paran, and Tophel, and Laban, and Hazeroth, and Dizahab.
1:7 Turn you, and take your journey, and go to the mount of the Amorites, and unto all the places nigh thereunto, in the plain, in the hills, and in the vale, and in the south, and by the sea side, to the land of the Canaanites, and unto Lebanon, unto the great river, the river Euphrates.
1:8 Behold, I have set the land before you: go in and possess the land which the LORD sware unto your fathers, Abraham, Isaac, and Jacob, to give unto them and to their seed after them.
Joshua 1:1 Now after the death of Moses the servant of the LORD it came to pass, that the LORD spake unto Joshua the son of Nun, Moses' minister, saying,
Joshua 1:2 Moses my servant is dead; now therefore arise, go over this Jordan, thou, and all this people, unto the land which I do give to them, even to the children of Israel.
Joshua 1:3 Every place that the sole of your foot shall tread upon, that have I given unto you, as I said unto Moses.
Joshua 1:4 From the wilderness and this Lebanon even unto the great river, the river Euphrates, all the land of the Hittites, and unto the great sea toward the going down of the sun, shall be your coast.

Absolutely nowhere does the then covenant between Y.H.W.H. and the Hebrews, state that this was to go outside of these boundaries or people. Nowhere does it say that all religion must be for Y.H.W.H. and Judaism.
The O.T. is the antithesis of islam where muzzies are to slay and be slain until all religion is for allah.
They must never seek peace they are to dominate.
qur'an 47:35
So do not falter and cry out for peace when ye (will be) the uppermost, and Allah is with you, and He will not grudge (the reward of) your actions.
Conclusion: these bits of the O.T. are a historic account of the Hebrews taking of the promised land, they are time, people and geography specific, they lost their perspective thousands of years ago.
Conversely the qur'ans' theme is that allah hates all non believers and muslims are to rape torture and slaughter their way to a world caliphate forever, until all religion is for allah.