Earlier quoted context omitted.
I'm having trouble finding it but the perfect example of this is a census that collected religious affiliation (for innocent statistics) that some brave citizens went to great lengths to destroy when they came under Nazi occupation in order to try and protect Jewish residents.
While an interesting story, I don't think it is as meaningful as people try to make it here. Sure, the census might have helped Nazis quite a lot in committing atrocities. But it doesn't mean the census wasn't genuinely useful, and - more generally - you can't make day-to-day decisions on the assumption that you'll get invaded and conquered by extermination-minded people.
You don't need to weigh things against extermination explicitly, just any bad consequence, including political ones.