But realistically, from a moral point of view, they can't really walk away in the first place unless the government demands are ridiculously unreasonable (e.g. demanding a price lower than production). The only drugs subject to negotiation are those without generic alternatives (i.e. where a free market doesn't really exist), so stopping supply would quite literally kill people. This gives drug companies an enormous advantage in negotiations in the first place, so this kind of compensates for that.
Using goodRX has really opened my eyes to the shady practices of drug pricing. The same drug with or without insurance at different pharmacies can range in price by 80+% (often with the higher rate "discounted" for insurance). The drug companies are willing to be this flexible with the prices when dealing with retailers. In the case of a Wal-Mart or Costco the negotiations don't sound so different. So what's the difference with what's happening with the government? It's on public record not in a private corporate meeting room. The business side of Healthcare in this country follows protection racket economics and it doesn't look like this is going to change any time soon.