The Rays did so much wrong Wednesday, it only seemed right that they lost.
The end came on a walkoff single by Odubel Herrera off All-Star Brad Boxberger, sealing a 5-4 defeat.
The Phillies rally off Boxberger, working his second inning, started with a bloop single to left by Domonic Brown, a former Pasco High star. He went to second on a bunt, when it seemed Boxberger may have had a play there, and then after an infield out, scored on a single to left-center by Herrera, capping an 11-pitch at-bat.
But the Rays day-long log of wasted opportunities, mistakes in the field and on the bases and inconsistent pitching is really what did them in, as they lost two of three to the worst-in-baseball Phillies and head home with a losing record at 48-49.
Jake Odorizzi got the Rays off to a bad start, allowing two runs on four hits and needing 30 pitches to get out of the first inning.
And it got worse from there before it got better, as the Rays, somehow, went 7-for-11 in a stretch from the second to fourth innings, and had five men in scoring position, but didn't get a run.
They loaded the bases with one out in the second, but Rene Rivera struck out and Odorizzi grounded into a fielder's choice. They got the first two on in the third, thanks to a replay reversal giving Brandon Guyer a hit on a ball that dropped on the rightfield line, but Guyer, inexplicably, got picked off second and they did nothing further. Then Joey Butler singled and Tim Beckham doubled to start the fourth, but Jake Elmore, Rivera and Odorizzi couldn't get the run home.
As badly as the Rays were playing, with two errors and Odorizzi's inconsistent outing, they rallied to take a lead with a three-run fifth.
After Guyer was hit by an Adam Morgan pitch, Evan Longoria - snapped an 0-for-18 skid - and Logan Forsythe delivered back to back RBI doubles. The Phillies switched to right-hander Justin DeFratus, and Rays manager Kevin Cash went to his bench trying to take the lead then, and it worked. Pinch-hitter David DeJesus walked and pinch-hitter James Loney delivered an RBI single to make it 3-2.
Odorizzi was lifted for a pinch-hitter after working five innings and throwing only 83 pitches. That was somewhat consistent with how the Rays have been handling some starters, but it backfired and struggling reliever Brandon Gomes quickly gave the lead back. Then another error, by usually sure-handed Loney, made it worse.
After Domonic Brown singled and moved up on a bunt, Cody Asche drove a Gomes pitch deep to right, the ball striking high off the wall for an RBI double. Asche moved to third on another single. Gomes was replaced by Xavier Cedeno, who got the ground ball he wanted, but it bounced under Loney's glove and through his legs, giving the Phillies a 4-3 lead. It was the Rays first three-error game since June 9.
But the Rays came back again, Forsythe greeting reliever Jake Diekman with a homer to open the seventh.
The Rays got a huge break in the eighth that kept the game tied when they successfully challenged a safe call at the plate. The Phillies loaded the bases with two one-out singles and a walk off Kevin Jepsen. Freddy Galvis grounded to first, and Loney scooped the ball, stepped on first and then threw home. Asche was called safe, and looked to slide in safe before Rivera tagged him. But the Rays challenged, and after a 3:42 review, they prevailed.
They had a chance to go ahead in the ninth, but wasted it. A Forsythe walk and DeJesus single put runners on the corners with no outs. Loney grounded to the right side, and was out. DeJesus got in a rundown, and got the Phillies to make three throws, but Forsythe decided to not try and score, holding at third. A slow roller by Elmore ended the inning.