It's all about conference record tiebreaker. If Miami & Buffalo finish at 11-6 they will have split their two games, both be 4-2 division, but Miami will have better conference record.
Assuming Browns, Bengals, Colts are also 11-6, it looks like Bills are out.