Matthew Stafford and the No. 5 Rams overcame mistakes and penalties to defeat the No. 4 Carolina Panthers 34-31 in the NFC wild-card playoffs.