You cannot avoid always your workmates in the company because there are chances that you will be with them at the meeting or etc. But in my own opinion, I avoid people who have this what we call "crab mentality". People with crab mentality are not professional at all. They will try whatever method they have even taking you down personally just to let them succeed in life. Crab mentality is a widely used term in the Philippines given to people who wants to pull down other people that are succeeding in life or getting ahead of them. If you have one in your office, definitely avoid that person. I really avoid this type of people in the office. I am an introvert and I dont want to deal with them honestly.
here's useful link about that kind of mentality, faq.ph/10-signs-that-a-person-has-a-crab-mentality
still, maintain a professional attitude even though these kind of people is not professional in any way.