Davis has eight interleague homers this season, most in the majors, and four through the first seven games of this road trip. Of Davis’ 44 home runs this season, 21 have either tied the game (4) or given the Orioles the lead (17).

With two outs and a runner at second — and first base open — the Diamondbacks chose to pitch to Davis, and he made Arizona starter Randall Delgado pay, taking a 1-0 fastball over the right-field fence.

A day earlier, Davis hit an opposite-field homer to tie the game in the eighth in the Orioles’ 7-6 walk-off loss to the Diamondbacks. He also hit a 466-foot blast, the longest recorded homer of his career, in San Francisco on Saturday and smacked a tie-breaking three-run shot last Wednesday that fueled a 10-3 win.

Shortstop J.J. Hardy, a Tucson native, hit his fourth homer in six games Tuesday — a solo shot to lead off the fifth inning — and extended his hitting streak to 10 games.

Gonzalez shut out the Diamondbacks for his first six innings. He allowed just a pair of singles in that span before the Diamondbacks rallied for two runs in the seventh.

Aaron Hill hit a one-out triple — the Diamondbacks’ first extra-base hit of the game — and scored on an RBI ground out by Prado. Parra followed with his eighth homer of the season, taking a 1-0 fastball over the right-field fence.

“I left a couple balls up and that changed the game a little bit,” Gonzalez said.

Gonzalez survived the inning and allowed just two runs on five hits in the outing, striking out three and walking none to record his 10th quality start in his past 12 outings.

He received help from third baseman Manny Machado in the sixth. With one on and one out in the inning, A.J. Pollock hit a ball down the line that Machado made a diving back-handed stop.

Hardy led off the fifth inning by taking a 1-0 pitch from Delgado over the left-field fence. Through his 10-game hitting streak, Hardy is 12-for-39 with a double, four homers, seven runs and seven RBIs.

Despite the loss, Showalter tried to put a positive spin on the night. He pointed out the defense, Gonzalez’s start and even mentioned that Rodriguez has had three good outings in his past four appearances.

“Unfortunately we live in that world where everything gets thrown out that went well when you lose, and a lot of things you didn’t do well get thrown out when you win,” Showalter said. “We know at the end of the day what the judgment is, and that’s winning and losing games. … You can constantly look half empty or half full and with with this group I’ll look half full.”