Am I wrong for not responding to or ignoring people I don't like for good reason?

For example if you speak to me I will literally act like I didn't hear you and walk away😂They say that's "immature". But I personally don't feel the need to fake it or socialize with people I don't trust or did me wrong.
Am I wrong for not responding to or ignoring people I don't like for good reason?
Post Opinion