Many countries use census data to target (or even round up and murder) specific groups of people by religion, ethnicity, etc.
I think that actually the US is an outlier.
[https://ieeexplore.ieee.org/document/11208589]
“The census was conducted in a period of successive wars and rapid territorial expansion. We focus on the handling of the census data for Macedonia, a newly annexed territory that would soon become the site of the first instance of large-scale ethnic cleansing in modern Europe.”
France also sent people to the Germans during the occupation, and there was very little info needed. The gov wasn't caring much about due process or lengthy and accurate investigations anyway.
"The Nazis used a data source to implement an extermination program" is not a statement which proves that your problem was the existence of a data source.
It’s no shock the standard of living continues to fall in what was once ostensibly the greatest country.
Do you even listen to yourself? How would collecting that data in this environment actually improve the country, instead of clearly being used to do bad things - which will make the situation worse?
Notably, this is the gun registry problem, and exactly why gun registries are also bad.
There is only one OECD country where this conversation has any merit.
Your gun registry example is great proof.