Is it a Greedy Innkeeper or Generous Capitalist?
If you must find "evil" in either of these narratives, remember that evil is ultimately perpetrated by individuals, not the institutions in which they operate. And this is why it's important to favor economic and political systems that limit the use and abuse of power over others. In the story of baby Jesus, a government law that requires innkeepers to always have extra rooms, or to take in anyone who asks, would "fix" the problem.