The root issue is that there are entities that profit (mostly in retaining their relevance/power) when two group of people are pitched against one another. Because such entities can proclaim themselves to be the protectors of the group that is the majority from the other group that could be a minority group.
So you have to understand that once all Muslims are driven out, such entities will pitch two classes within Hindus itself. And in all probability, this could be what happening in places with Muslim majority.
So the real solution is not to drive a group of people away, or declare a "Hindu Rashtra" but to recognise such entities that are profiting from these conflicts, and render that tactic toothless. You will magically see the killings stop.