I don't see how that changes anything. Especially since in practice "rioting" tends to mean "a protest that the police or those in power don't like".
All of those situations still have the problems associated with deploying the military against civilians: The military isn't trained to carry out appropriate law enforcement. It compromises trust in and support for the military. It tends to be used disproportionately against the left rather than the right. It is easily abused to suppress dissent. Etc.