Yellow Sky turns out to be an unintentional allegory showing the difference between Democrats and Communists. Spoiler Alert!
Peck is the boss of a gang of six bank robbers. They rob a bank, ride and walk across a desert to escape, then come upon a ghost mining town with two residents, and old man and his granddaughter.
Peck is the Democrat, and the rest of the gang are the Communists.
The old man and his granddaughter have some gold. Peck makes a deal with the old man just to take half of his gold for himself and the rest of the gang if the old man will tell him where it's hidden, in return for not torturing and/or killing the old man. Peck has an eye for the granddaughter, but he just wants to seduce her.
The rest of the gang want to take all the gold, once they've found it, despite the deal. Some also want to rape the granddaughter.
They turn on Peck when he insists that they may steal only half the gold. This makes him honorable -- this makes him the hero of the movie. He's a man who keeps his word. If he promises to steal only half your money, you can rely on that. That is where the allegory falls apart, because Democrats won't actually stick to the deal. In real life, the Democrat Peck would end up killing the rest of the gang (and even in the movie, he kills most of them). He would take all of the gold, keep 2/3 of it, and give the other 1/3 to Apache Lives Matter. Either way of course, the granddaughter gets, well, you-know-what-ed.
At the end of the movie, Peck prevails. He takes gold to the bank he robbed and pays them back. Note that he pays them back in gold, which he stole from the old man and his daughter -- he doesn't pay them back with the currency he originally stole from the bank. Remember, he's been in a ghost town and there was no opportunity to spend any of the cash he stole from the bank. The granddaughter is delighted with this outcome, because Peck stole only half of her money. She is obviously a Democrat voter.
There you have it -- the difference between Democrats and Communists.