"tough luck", a shame. Something that's not very good but you can't really do much about it.
"You just bowled a no-ball. That's hard cheese, old boy."
a situation that is bad or something that is not good
"You ran over the neighbor's puppy, that's hard cheese."
"That sweeper lasted only 3 days, that thing is hard cheese."