If the Pats lose to the Dolphins and the Dolphins win out, the Dolphins would have the tiebreaker over the Patriots based on head to head. They would have the season sweep. Conference record wouldn't matter. Unless a 3 way tie happens. Then stuff becomes a lot more convoluted