I am claimed to be best when close, yet I am always full of malice towards you. I wish you dead, yet at times we must join together to fight another of myself. What am I?

If you could explain why, that'd be great.