I am more than likely to be wrong, but I seem to recall seeing somewhere that the rivals were determined by the closest cumulative score, so if you were +26/-32, it's a total different of -6 and fairly close. I imagine playoff games don't factor into it, but that's even less reliable than "I think I remember" and is just pure speculation.