Before you blast this thread. The following is all that needs to happen. It is not as difficult as one would think.
The Patriots beat the Jets, lose to the Vikings at Home, then lose to the Dolphins and Steelers on the Road. None of these are impossible.
The Bills need to beat Jacksonville at home, the Dolphins on the Road, the Jets at Home, the Lions at Home. None of these are impossible.
If those scenarios play out then....
The Bills (7-7) at Patriots (8-7) on December 26 would decide the winner of the AFC East as long as the Bills take care of business at home in week 17 against the Dolphins. Yes the Bills would win the tie-breaker with the Patriots based on division record. The 9-7 Bills would be 5-1 in the Division. The 9-7 Patriots would be 4-2. The Bills would be the AFC East Champions.
Winning the AFC East would mean host a home playoff game.
The Bills might want to ride Matt Barkley until they lose a game. Right now he gives the team the best chance to win.
Is this likely. No. But it isn't as impossible as one would think.
Check it out for yourself on the playoff simulator.
https://www.nytimes.com/interactive/2018/upshot/buffalo-bills-nfl-playoff-picture.html#buf-jax-12=win&nyj-ne-12=loss&mia-buf-13=loss&ne-min-13=loss&buf-nyj-14=win&mia-ne-14=win&buf-det-15=win&pit-ne-15=win&ne-buf-16=loss&buf-mia-17=win&ne-nyj-17=win