Togolli isn’t what buffalo needs
The deal is one sided.
Toffoli st the deadline gets a late 2nd at best from a playoff team and buffalo sends a pkayer just drafted in the 1st and Bogosian. That’s on the level of Toronto unloading Marleau to Carolina because buffalo would have already paid half Bogo salary by end of the month.
This is nothing like the Marleau deal. We're getting a contributor that we need in return and a pick that makes up a good part of the difference in value. If Toffoli is worth a 2nd, as you said, a 2nd plus a 4th plus $3M in cap space is certainly worth pick #31.
Toffoli is one of the things Buffalo needs. Their RW is weak in the middle six and we lack physicality in general. He's not the biggest need, but he's certainly one of them.
Cap space is another thing Buffalo needs if they want to address any other need later this season. If you can get that by giving away a useless player rather than a contributor, you take it. Suddenly you can consider a move to try and get a 2C at the deadline, say, without giving up a guy like Risto, who is playing quite well.
Ryan Johnson is the most valuable single piece, but not actually a thing Buffalo needs. Buffalo could have an elite defensive core with a little development and contract management.
It's a balance.