Jordan Lyles (2-3) gave up 11 hits and four runs in six innings.
St. Louis went ahead 2-1 in the third when Martinez homered into the right-field bleachers after Tommy Pham led off with a single.
After Martinez singled for his third hit in the fifth, Ozuna followed with a drive into the left-field bleachers on an 0-2 breaking pitch left over the plate, giving the Cardinals a 4-1 advantage. It was Ozuna’s fourth homer in his last nine games.
The two home run balls, pitches I want back, Lyles said. Two good hitters, balls over the plate but other than that, there were just so many hits scattered throughout. A lot of balls hit hard, some weren’t but one though nine, they’ve got a good lineup. That was a battle to get through that lineup a few times.
Cory Spangeberg hit a line-drive homer into the right-field seats with one out in the second, giving San Diego a 1-0 lead.
Robert Gsellman worked two scoreless innings , bailing out Reyes after his double error gave the Yankees a chance in the eighth. Reyes threw well wide of first base on what should have been a 6-4-3 double play, and then a replay review showed he missed second base entirely on the pivot. Gsellman got a foul out and a flyout to strand the runners.
The Diamondbacks recalled RHP Braden Shipley from Triple-A Reno and optioned utility man Christian Walker to the Aces prior to Monday’s game. Shipley replaced Corbin and hit Harrison, the only runner he allowed in 1 1/3 scoreless innings.
Pirates: C Francisco Cervelli sat out his second straight game after being struck in the left jaw by a foul tip on Saturday. … Harrison is day to day with a contusion from being hit by Shipley.
Diamondbacks: LHP Robbie Ray (strained right oblique) threw a bullpen session on Monday and could start a rehab assignment soon, depending on how he recovers.
Arizona RHP Clay Buchholz has allowed two runs or less in all four of his starts heading into Tuesday’s game against the Pirates and RHP Trevor Williams.Crawford homers as Giants beat Scherzer, Nationals 2-0