Cozens made it 2-1 with a short-handed goal at 5:08, scoring with a one-timer from below the right circle off a pass from Jordan Greenway.
"I'm not going to be thinking about much other than not being in the playoffs," Cozens said. "That’s the biggest thing that will be on my mind. It will be on my mind every day this summer, every time I’m on the ice, every time I’m in the gym. It’s going to be a big summer for a lot of us, we’ve got a lot to prove and we’re hungry."
Greenway extended Buffalo’s lead to 3-1 at 16:13 when he put in a cross-crease pass from Zemgus Girgensons at the left post.
Erik Cernak cut it to 3-2 at 9:39 of the third period with a shot from the point off a pass from Nicholas Paul.
"We wanted to win these last couple of games," Paul said. "We didn't do it tonight, so win [Wednesday]. Not just win, but play playoff hockey. Play as a team, eliminate turnovers, limit their time and space, play simple and play hard."
Zach Benson made it 4-2 at 9:54, chipping-in a pass from Quinn at the left post.
"A lot of times, you can just mail it in at the end of the season when you’re not going to the playoffs,” Buffalo forward Alex Tuch said. "But the guys in here all came out, the mindset was to battle hard for our guy [Comrie]. That’s what it came down to."
NOTES: Luke Glendening left the game in the first period after taking a check into the boards. Cooper said he will not play Wednesday against the Toronto Maple Leafs, and his status for the playoffs is yet to be determined. ... Stamkos has seven 40-goal seasons. ... Quinn had four points (two goals, two assists) during a three-game point streak.