If you like compelling twists and subplots to your rivalry games, you’ve come the right place for Sunday’s Hudson River Derby match between the Red Bulls and New York City FC at Yankee Stadium.

Last month, NYCFC coach Patrick Vieira bolted New York to France to coach OGC Nice, leaving his former club with a new coach — Dome Torrent — who had little to no familiarity with the team’s players or system.

Torrent, a former assistant under Pep Guardiola at Barcelona, Bayern Munich and Manchester City, has been in a weeks-long cram session trying to lead NYCFC forward while learning about his personnel and integrating his system.

On Friday, Jesse Marsch, the coach of the Red Bulls for the past three and a half seasons, suddenly departed to pursue a long-rumored opportunity with Red Bull Leipzig.

Unlike with the NYCFC scenario, though, Marsch was quickly replaced by his top assistant, Chris Armas, who has intimate knowledge of the players on the roster and the Red Bulls’ high-press system.

So, on paper, it would seem the Red Bulls’ transition from former coach to new coach would be the most seamless. Thus, advantage Red Bulls.

“Jesse has created such a great culture here, and he’s empowered people to take on more responsibility, a greater role and more leadership,’’ Red Bulls captain and goalkeeper Luis Robles told The Post. “It’s not just me, he’s done it to Brad [Bradley Wright-Phillips] and he’s done it to Chris [Armas].

“I know that there’s going to be an adjustment, but at the end of the day the culture is so strong and the belief so high that it’ll be business as usual. There’s no reason to think that we can’t continue the same trajectory of success that we’ve had so far.’’

Robles said “everyone is happy for’’ Marsch in his pursuit of a new opportunity, adding, “No one is upset about the situation. Is it bittersweet? Absolutely. But at the end of the day it’s a business and Jesse has to make the best decision for himself.’’

Robles said he felt like Marsch had been preparing the team for his eventual departure.

“When Jesse came here, one of the first things he did was establish a leadership council,’’ Robles said. “He understood that empowering people is one of the greatest assets to a team that he could bring to the table.’’

Armas, a former MLS player for 12 years and Marsch’s top assistant, said he’s been “preparing my whole life for this moment.’’

When you listen to the Red Bulls players, it sounds like they’ll run through a wall for Armas.

“I don’t think there’s a single person in our locker room that doesn’t believe that Chris is the right man for the job,’’ Robles said. “Every story has obstacles and setbacks. This is just another part of our story. This is an obstacle, not a setback.’’

Said Wright-Phillips: “We’ve got a great head coach now. He knows what’s happening here because he’s been here. He knows how things are done here. He has input on how we play now. I feel like [the transition] will be as smooth as it can be.’’

Will it smoother than that of NYCFC and Torrent?

“This NYCFC match is obviously going be a big test and yet they’re going through something that’s similar,’’ Robles said. “Their guy [Torrent] is completely different, because it’s not as if he’s been integrated into their organization. He’s not acquainted with the players. He has to formulate his own style. Chris can hit the ground running, because he’s been a part of what we’ve been doing the last three and a half years.’’

So on Sunday we’ll truly see whether this is advantage Red Bulls, who arrive to this match having dusted NYCFC twice this season — both 4-0 results (one in league play and one in U.S. Open Cup play), but both were at Red Bull Arena.

Fresh off a 1-0 win at Toronto FC last Sunday, the Red Bulls (10-4-2) are on a three-match winning streak, are unbeaten in their past four and are 7-2-1 in their past 10 matches to stand in second in the Eastern Conference.

NYCFC, at 9-4-4, is one point behind the Red Bulls in the standings after a 3-2 loss to the Chicago Fire last Saturday. The club is 0-4-2 in its last six road games but is 7-0-1 at Yankee Stadium.

“They’ve just been amazing at home,” Robles said. “We look at their record and see that they’re 7-0-1 and we have to give them their due respect, and yet there’s a little part of us thinking, ‘Man, it would be really nice to be the first team to win at their place.’ They’re going to do whatever they can to avenge the last two results.’’