Yoshinobu Yamamoto dissed the Yankees and Mets for Dodgers superteam riches. What comes next?

Two swings and a miss.

Yoshinobu Yamamoto, the prized free-agent Japanese right-hander at the center of the Yankees’ and Mets’ offseason agendas, instead is going to Los Angeles, agreeing Thursday night to a seismic 12-year, $325 million contract with the Dodgers.

The Mets made a 12-year, $325 million offer, according to The Post’s Mike Puma, which the Dodgers matched.

The Yankees’ offer was for $300 million, per The Post’s Jon Heyman.