Manny Machado hit a tie-breaking grand slam in the fifth inning Wednesday night for the visiting San Diego Padres, who held on to beat the New York Mets 7-4 in the middle game of a three-game series between the teams holding down the final two National League wild card spots.