Strength Training vs. Endurance: Which Builds Mental Resilience?

I’ve been diving into the connection between physical fitness and mental resilience lately, and I’m curious to hear your thoughts. Strength training has always been my go-to for building physical toughness, but I’ve heard arguments that endurance activities like running or cycling might have a stronger impact on mental grit. Does lifting weights help you push through mental barriers, or is that more of a cardio thing? I’d love to hear from anyone who’s experienced a shift in their mental resilience through either type of training or maybe even a mix of both!