A word about the ending......(spoile rs ahead)
Everybody who's seen the film knows that Gregory Peck dies at the end.....but.
What about the possibiity that he faked his death in order to escape his past to start a new life with his ex-sweetheart and their son?
I know it's a huge stretch, but try to imagine Peck's character lying there on the ground, having just been shot. This would have been the perfect time to simply close his eyes (after making that final speech in front of many witnesses to the kid who just shot him about what kind of a terrible life HE'S going to have as nothing more than a target for other "gunnies") and simply pretended he was dead....just that simple.
Afterwards, some folks (meaning his friend the sheriff, and a few other sympathetic people, like the bartender, the barmaid, the doctor, etc) would have carried his body away to the undertakers. There he would have revealed that he was only faking it, the doctor could have stitched him up, and he's now officially dead, free to ride away into the sunset, as the last shot of the film clearly shows him doing. All that's required is a weighted, closed coffin at the funeral, and nobody except a few people know the truth.
Once he's "dead," it'll be easier to start a new life....shave his mustache, change his appearance, etc. And in a year, he meets up with his sweetheart and son in secret and they start a new life together.
Yeah, it's a big leap of faith, but otherwise the ending is way too sad and depressing, after making the audience really root for this guy to put his past behind him and start all over with the only woman he ever loved and the child he never knew.