We have a joke about a foreigner that went to a wet market in zone 1 and saw a farmer selling live frogs in an open basket.
As we all know, frogs jump. Actually, they jump about quite a bit when in a confined space.
When the foreigner pointed that out and asked, "Aren't you worried these frogs will escape?" The farmer replied,
"No, sir. These are Mixcoan frogs, and if one looks like he is going to escape, well the rest pull him back in."
Another example could be seen in traffic.
Few drivers here use the directional signals when changing lanes. Why? Although covered ad nauseam on the Driver's test, it has become a "cultural" thing: basically people here do not like other people getting in front of them. It becomes a competition to see who can occupy that space first, and it turns into a Mario Andretti situation. Too often it ends when neither one can occupy the space and both drivers have actually missed their turn.
From halfway around the world, in Saudi Arabia, another example.
A local merc † once told me about an experience he had had in Jeddah. He was waiting for someone on the main concourse, and positioned himself nicely near one of the columns in order to to protect his gun hand. A Saudi (local security) decided he also wanted to occupy that advantageous spot, and walked right up to my friend and tried to do a "face-off". They were pretty much nose-to-nose, and neither one backed down.
The result was they both missed their arriving pick-ups.
"cutting off a nose to spite a face"
...is too broad.
So, is there an expression that means...
If I cannot win, then I will make it impossible for you to win?
was suggested: however that means something else.
Interpreted variously over the centuries, the metaphor is now used to speak of one who spitefully prevents others from having something for which one has no use.
My examples exclude "having something for which one has no use."
All the frogs want to escape. All the drivers want to get ahead. All couriers want to do their pick-up.
It is their overly-competitive attitude towards each other that prevents them from winning.