I think, but prepare to stand corrected…
If the Ravens lose tomorrow they drop behind the Dolphins on division/conference record. The Chiefs will be a game behind with a win.
If the Ravens then lose to the Dolphins, Miami cannot finish below Baltimore in the seedings due to head to head.
If the Bills then beat the Dolphins, and the Chiefs win out, then the Chiefs get the one seed on division/conference record.
1. Chiefs, 2. Dolphins, 3. Ravens