If I cannot win, then I will make it impossible for you to win

Solution 1:

"Crab mentality" or "crabs in a bucket" describes the frog analogy well, but the driver scenario seems different.

Crab mentality, also known as crab theory, is a way of thinking best described by the phrase "if I can't have it, neither can you". The metaphor is derived from a pattern of behavior noted in crabs when they are trapped in a bucket. While any one crab could easily escape, its efforts will be undermined by others, ensuring the group's collective demise.

The analogy in human behavior is claimed to be that members of a group will attempt to reduce the self-confidence of any member who achieves success beyond the others, out of envy, resentment, spite, conspiracy, or competitive feelings, to halt their progress.

Wikipedia

Solution 2:

You could call it a scorched earth policy This is when you know you can't win in a situation, so you're going to just burn it all down to prevent your opponent from making any use of it. See also: salting the earth. Either way, you're ceding territory to the enemy, but in such a way that it is of little or no use to them. Obviously can be used in a metaphorical sense in addition to the literal meaning.

Solution 3:

Edwin linked to a question about the expression "If I can't have it, no-one can", but I think this phrase is exactly what you're looking for: it literally means "If I can't win, I will make it impossible for someone else to win".

The wording can be changed to suit the situation, so for example the "Guatemalan frogs" might say "If I can't escape, no-one can".

This pattern of phrase is idiomatic in British English - I believe the same is true in North American English.

Solution 4:

You are kingmaking or spoiling, and can be called a kingmaker or spoiler. This usage comes from game theory via historical analogy (cf. "Is kingmaking in multiplayer games a problem that can be fixed?"). Here is how Wikipedia defines the kingmaker scenario:

a kingmaker scenario in a game of three or more players,[sic] is an endgame situation where a player who is unable to win has the capacity to determine which player among others will. Said player is referred to as the kingmaker or spoiler. No longer playing for themselves, they may make game decisions to favor a player who played more favorably (to them) earlier in the game.

I've often encountered both terms during board games where an already-losing player intentionally hinders another player in order to enable a favored player's victory. For instance, if one player has been continually acted against during a game of Risk, in a situation where they can no longer win, they may instead act as the spoiler against that player, decimating their armies. I've also heard spoiling in situations where everyone would lose as a result of a player's deliberate actions, in situations where that is possible. (It can happen in some competitive games - see this list on BoardGameGeek.) The usage is a little quirky, but spoiler especially is attested in the OED in American English:

2.c. U.S. One who mars the chance of victory for an opponent, while not being a potential winner. Also, applied to a thing. Esp. in Sport and Politics.

A related usage also carries over to politics (the spoiler effect, e.g. Hiring and Firing Public Officials),

Solution 5:

Much of the game theory of the Cold War dealt with MAD or Mutual Assured Destruction, where the United States and Soviet Union went to great effort to demonstrate they would have the capability to destroy the other no matter what was targeted as a first strike, thus deterring a major war, and so denying both sides a "win".