Actually, utilitarianism doesn't work that way either. A fictional entity doesn't count at all when the topic is how to maximize the happiness of the people on the whole.
Whether it makes a corporation happy is just about as irrelevant as whether it makes my Skyrim archmage happy, or whether it makes my imaginary army of zombie pirate ninja vikings happy. Which is to say, not at all. The fictive entity "corporation" doesn't count even as 1 person, it counts as exactly 0 (ZERO) persons for utilitarian considerations. Which, again, is what we're really talking about in such "the good of one vs the good of the many" scenarios.
What matters is sorta whether the net sum on the total of society. Including, of course, its employees, share holders, economic effect on the whole, etc.
And then not all transactions are created equal.
E.g., very oversimplified,
- if I'm a baker and you're hungry, selling you a sandwich is working out to be better for both of us. I want money more than I want another sandwich sitting there and getting spoiled, and you obviously want the sandwich more than you want the money it costs. Or you probably wouldn't buy it.
- if I hit you upside the head with a half brick in a sock to steal 100$ from your wallet, it's a net loss. You lost more than I gained. Possibly even your life. It's the kind of transaction you don't really want. Enough of that happening around, and society gets worse on the whole.
And that's not even counting the all too common case where I'd make a loss for you without gaining anything myself, or even making a loss too. E.g., a guy who just keys cars for the heck of it, and then goes to jail for it. I.e., it's not just detrimental, but stupid too.
And just so it's not completely off topic, really, the latter is what a lot of this raping privacy six ways to Sunday is all about. I'm under the impression that a lot of data being collected, and a lot of companies collecting it, don't even come with a plan as to how to make any gain out of it.
E.g., take the trend of needing to give all your data, down to exact birthday and street number and everything, just to be allowed to download a patch for a program you bought. Most of those companies don't actually plan to sell that to spammer or scammers, and it's too much detail even for data mining. You can get some meaningful correlation by age group or general geographic area, but you're never going to get some insight as to what those living at houses numbered 15 buy more than those living in houses numbered 17. It's trivia, not data, and as good as random noise for basing anything on.
So when they inevitably get pwned by some script kiddie, or some disgruntled IT worker sells the whole client database to a spammer, they made a lot of people a loss, but they still haven't gained anything out of it. And what for? Just because basically some marketroid drone is stupid.