Absolutely people were condemned for hiding Jews. Not all the public supported the Third Reich, but plenty did.
And it was “the law” after all, to turn them in.
Since 1970 I’ve said that what is legal is not necessarily moral and what is illegal is not necessarily immoral.
You are 100% right and its how we deal with those inconsistencies that defines us.