49ers defensive resilience shines