And then you have tobacco companies suing countries for anti-smoking laws, because fuck it, why not.
And then you have corporations playing states and countries off each other by getting them to compete over jobs with tax breaks.
So no, nation states do not really have the upper hand over corporations. It's the other way around these days.