The iconic line "A man's gotta do what a man's gotta do" is not from a specific John Wayne film. It's a widely recognized Western aphorism—a piece of folk wisdom—that became culturally fused with Wayne because he so perfectly embodied the stoic, duty-bound cowboy archetype across decades of films like Stagecoach, Red River, The Searchers, and True Grit.
While Wayne's characters live the sentiment—sacrificing personal desire for honor, protecting the vulnerable, facing impossible odds—he never delivers the exact phrase as a scripted line in any verified movie. The saying likely evolved from similar dialogue in Western literature and earlier films, condensing the genre's core ethos into a single memorable sentence. Wayne's association with it is a testament to his status as the face of the American Western, not a film credit.