Against teams .500 or below, the Yankees are 41-17, good for a .707 win percentage. In comparison, the Red Sox are 36-22, good for a .621 percentage.
So the difference is noticeable, but not enormous. Unfortunately, the Yankees have the A's and Orioles over their next 8 games. They're a combined 14-2 against them.