BALTIMORE (AP)Before there was even an out in the top of the first inning, Rafael Devers put four runs on the board with one swing of the bat.

It was another setback in Baltimore’s improbable postseason bid.

For Boston manager Alex Cora, it was a reminder of what might have been.

”It is a friendly reminder that we’re really good. When we do our thing, when we are disciplined, we are that team. But we haven’t been consistent,” Cora said. ”We are where we are because we’ve been very inconsistent in our approach.”

Devers hit a first-inning grand slam, Kike Hernandez had four hits and the Red Sox slugged their way to a 17-4 rout of the Orioles on Saturday. It was an ugly showing for a Baltimore team that fell five games behind Seattle for the final American League wild card.

Boston is in even worse shape. The Red Sox are in last place in the AL East – where the Orioles were expected to be – but this offensive display showed how dangerous Boston can still be.

Jordan Lyles (10-10) couldn’t make it out of the fourth in his first start this month, and the Orioles lost for the fifth time in seven games.

”It only counts for one loss, and we’re going to try to get a series win tomorrow,” Lyles said. ”Tomorrow, if we win, we take the series and we won’t think about all the runs we gave up tonight.”

Christian Arroyo hit a two-run homer in the fifth for the Red Sox, who had already broken the game open by then. Boston snapped a four-game losing streak, and Michael Wacha (11-1) extended his unbeaten run to 11 starts.

Lyles missed his previous turn because he was sick, and this one was bad from the beginning. A walk, a single and a hit batter loaded the bases for Devers, who cleared them with a drive to left-center field. It was his 26th homer of the year and the first of three hits on the night for the star third baseman.

Cedric Mullins went deep for the Orioles in the third, but Boston responded immediately with four more runs in the fourth. Hernandez and Kevin Plawecki hit consecutive doubles to make it 5-1. With two out, Alex Verdugo hit an RBI single and then Xander Bogaerts singled to chase Lyles.

Devers singled off reliever Keegan Akin to make it 7-1, and Trevor Story followed with a run-scoring single of his own.

Lyles allowed eight runs and seven hits in 3 2/3 innings.

Wacha permitted three runs and six hits in six innings, with five strikeouts and no walks.

Arroyo’s home run made it 10-1. Boston finished with 21 hits, five of which came in a six-run ninth that ended with Orioles outfielder Ryan McKenna on the mound.

CONSISTENT

It was Wacha’s fourth consecutive start with six innings pitched and between two and four runs allowed.

”I feel like as a starter, that’s our job, and that’s what we’re supposed to do,” he said. ”Trying to go as deep as I can.”

TRAINER’S ROOM

Red Sox: LF Tommy Pham exited in the fourth with a bruised left shin. … Story appeared to be hit by a pitch while swinging at it in the first. It was ruled a strikeout and he remained in the game. … RHP Nathan Eovaldi (shoulder) threw a bullpen before the game.

UP NEXT

Boston LHP Rich Hill (6-6) starts against RHP Kyle Bradish (3-5) on Sunday in the final game of the series.

Follow Noah Trister at https://twitter.com/noahtrister

More AP MLB: https://apnews.com/hub/mlb and https://twitter.com/AP-Sports