X and Zero.
They fight in one route of X2, when Zero has been reprogrammed, and in X5, when Zero is taken over by the Maverick virus. Zero is effectively brainwashed in both of these instances.
During the rest of the series they're non-antagonistic allies. How is this a rivalry?