Why would the realm punish him? I honestly don't see where you're getting your argument, Indirik. There is a much more extensive supply of gold then food. Most Dukes make insane amounts of gold currently, and the only case where that might not be the case is if they're not also the lord of a city. Then it doesn't really matter, because they don't need to buy food for the city. Also, trying to argue with someone about economics who is going for a business major isn't exactly going to be in your favor.
The realm would punish him because he's directly harming the realm out of greed. My duke would openly ask for the person to be banned in the realm messaging system, and would likely gain the requested support.
Especially while at war, greed that hurts a realm cannot be accepted.