The Koran is not uniform but evolves in its doctrine. The MECCA chapters (suras) date from Mohammed’s time in Mecca, when he was not powerful, and so had to appear peaceful and conciliatory. They are predominantly about religion.
The MEDINA suras date from when he was much more powerful and became a murderous warlord and plunderer. They are overwhelmingly about JIHAD – war on kafirs. Jihad is not mentioned at all in the Mecca suras. The Medina verses ABROGATE the mild stuff from Mecca.
“MILD” Mecca suras, like 109:6 (early Mecca) –
I do not worship what you worship, nor do you worship what I worship. I shall never worship what you worship, nor will you ever worship what I worship. You have your own religion, and I have mine –
give way to VIOLENT Medina ones. Medina is a change from “religious” Islam to POLITICAL Islam. This change hugely multiplied his followers.
Abrogation
Abrogation (Allah changing his mind) was foreshadowed in late Mecca – a little tetchily – in verse 16:101 :
“When we change one verse for another (God knows best what he reveals), they say, ‘You [Mohammed] are an impostor.’
A bit later, In the very first sura “revealed” from Medina, he says in 2:106 –
“If we ABROGATE a verse or cause it to be forgotten, we will replace it by a better one or similar….”
Islamic doctrine holds that where there is inconsistency between verses in the Koran, the later verse abrogates the earlier one. So all the mild stuff from Mecca is overturned by the violence from Medina.
Compare the mild 109:6 above with 9:5 (the last sura from Medina):
…slay the idolaters wherever you find them. Arrest them, besiege them, and lie in ambush everywhere for them. …