I think the idea of "revenge" as motivation is overrated when it comes to years past. Maybe it inspires a little more energy in practice, and maybe it gives a boost for a couple minutes at the start of the game, but that early surge in energy could just as easily result in forced shots, missed shots or turnovers as in better play.
Playing the same team in-season is different, but it's not really about revenge. If Team A wins by 20, Team A's players are going to be less intense than Team B in practice, very likely. The coach can say whatever she wants, but the players are thinking "We beat them last time, we'll beat them again."
Meanwhile, Team B's players will listen to the coach more than usual because they know they have to improve to win, and they are more likely to make adjustments.
This is even more true the more wins Team A has. In Georgia this year, nationally ranked Holy Innocents beat Wesleyan three times -- and then lost to Wesleyan in the state title game by 17 or so.