Islam does not condone aggression
The Quran deals with the practicalities of human life. From the beginning of human history, people have committed aggression against each other. In essence, the Quran requires human beings to live in peace and justice. In the event that there is violent aggression, a violent defense is allowed. Islam defends the right of self defense but abhors aggression.
Torture and killing of Muslims
In order to understand the militant verses of the Quran, one truly needs to know the violent historical context of the time, when those verses were reveled. It is important to realize that the pagans of Makkah tortured Muslims with physical harm, starvation, social boycott and murders. Abu Jahl was a prominent polytheist known for his critical opposition towards Muhammad (Peace be upon him). His savage beating made a Muslim slave blind. He killed a Muslim woman named Sumayah, by inflicting her with a mortal wound. https://qpeace.net/?p=1823
Migrating for fear of life
Eventually, the prophet (Peace be up on him) and his followers escaped Makkah and migrated to the city of Madina. A groups of Makkan assassins hunted the prophet (Peace be up on him) to kill him on his way. He travelled hundreds of miles through the harsh terrain of dessert to arrive the city of Madina. The pagans continued to attack the prophet (Peace be up on him) and his followers in Madina in the following years with armies much stronger than the prophet and his followers could muster. https://en.wikipedia.org/wiki/Persecution_of_Muslims_by_Meccans
The contexts must be considered
By all means, these were trying times for the new Muslims. They were facing annihilation in an asymmetric combat against a disproportionately strong enemy. Likewise the Quran had to deal with violence and war in these historical contexts. For the purpose of fairness, while interpreting the related verses, these contexts must be considered.
Quran 2:190. “…Fight in the path of Allah those who enter into combat against you, but do not commit aggression; for Allah does not love aggressors. Quran 2:191. Kill them wherever you encounter them, and drive them out from where they drove you out from, for persecution is more serious than killing. Do not fight them at the Sacred Mosque unless they fight you there. If they do fight you, kill them- this is what such disbelievers deserve. Quran 2:192. But if they stop, then God is most forgiving and merciful.”
Quran 8:61. “…But if they incline towards peace, you [Prophet] must also incline towards it, and put your trust in God: He is the All Hearing, the All Knowing..”
Quran 2:194. “….Whoever commits aggression against you, retaliate against him in the same measure as he has committed against you. But fear Allah, and know that Allah is with those who restrain themselves.”
Quran 4:94.”So, you who believe, be careful when you go to fight in God’s way, and do not say to someone who offers you peace, ‘You are not a believer’ “
Quran 41:34. “…Good and evil cannot be equal. [Prophet], repel evil with what is better and your enemy will become as close as an old and valued friend..”
Qur’an 76:8-9 “…..And they give food, in spite of their love for it, to the the poor, the orphan, and the captive, (Saying): ‘We feed you seeking Allah’s Countenance only. We wish for no reward, nor thanks from you”.