Largely a company can choose their customers; they’re not forced to transact with anyone. There are some exceptions of course, largely based on the reasons for not transacting. Being publicly traded doesn’t really matter here directly.
I assumed that it's his/their fiduciary duty to maximize profit, and if the current excutive team doesnt do that, they will be replaced with a team that will.