Of course Muslims were killed and looted during partition.
Jews and Christians are people of the book, and have to live as Dhimmis under Islam, with various conditions imposed on them. Same was the fate of Hindus in India.
Discrimination is universal. It does not need a religion.
But a religion like Islam clearly discriminates between Momin and Kafir. That itself is not what causes violence in its name. What causes the violence is Allah's instruction to that effect in the Quran, and the Prophet's own example.
Why has the percentage population of Hindus declined rapidly in Pakistan and Bangladesh, while that of Muslims in India has increased over the past 50 years?