For instance if the EU or the DOJ were to require Apple to change their policies, we could say Apple isn't forced to do so, as they still can refuse and "just" pay enormous fines until bankruptcy.
I'm not sure what we would call "force" if we take that definition.
For instance if Apple had to pay a global total of 2 millions of fine every year for their AppStore policy, it would be rolled in as cost of doing business and they'd keep ignoring the rulings for decades. If Amazon only had minor punishment for breaking AppSore rules they'd do it yesterday.
A binding contract is only as strong as its penalties, and in that regard we can see laws a form of contract and vice versa.
Fines are not an exchange of value, even if some firms attempt to treat them that way. They are also not subject to agreement. They are risk and can be arbitrary.
So no. They are not the same.