I would say you’d be better off if you directly confront them rather than walk away. Granted, one of the scariest things is to confront people who have done you wrong. You may damage relationships and even provoke violence. But if that option is absolutely necessary, you have no choice.
Think of all the ways you can confront rude people without resorting to violence. Also, think of ways that are not harebrained or immature. If someone cuts you off for a parking space, pouring paint down the person’s gas tank is not mature or wise. Unless the person puts your life in danger, ignore the incident completely. However, if an abusive teacher intentionally gives you a bad grade for a report you did perfectly well, decide how you want to confront this person.
We have all dealt with rude people, but resorting to violence is never a good answer. You will simply waste your time and energy on someone who is not worth it. Make a plan on how to confront someone you disagree with. Make a list of statements you could say to the person and the possible responses you could get back. That way, you are prepared for any situation that gets out of hand.