Hard to say - so much of it depends on the talent and how other teams regard the qbs. An elite QB is worth everything, and teams at the high end of the draft order generally have bad qbs. Trading the farm for a genuinely elite QB is not a dumb thing to do.
The teams to look at are Chicago, SF, Indy, Cincy, and Houston. All have their qbs, and all could be drafting in the top 10. The Browns will take a qb #1 overall (that's not even debatable). Other bad teams who need a qb include the Giants, the Chargers (Rivers is declining), the Ravens, the Jets, and AZ.
Beating SD will hurt the Bills chances, but since they still have a legit shot at getting to 9-7 and making the playoffs, they shouldn't start sucking for a qb yet. Indy, the 2 miami games, and the Chargers games are all winnable, although I'm not confident about Miami on the road. They will get destroyed by the Pats twice and by KC.
The big wild card in all of this is Kirk Cousins. He's a legit franchise QB, and Washington can't franchise him again.