In today's NFL and the way the game was going tonight, I think the Ravens needed to go for it there on fourth down. When you have a QB like Josh Allen and your defense has been getting shredded all night, you have to think there is a VERY good chance that even if you punt the ball, the Bills will end up back at that same spot in just a few plays. If you go for it and get it, you likely win the game.
When you're facing Mahomes/Allen/Burrow, you have to think that they can easily get to mid-field or beyond in one or two plays, especially when your defense was playing like shyt.