The factor that contributed to the success of some mammals during the K-Pg mass extinction event was:
The ability to regulate their body temperatures in the face of reduced sunlight and colder temperatures.
Mammals are generally better at maintaining their body temperature, which would have helped them survive in the cooler, darker conditions following the impact event.