Sounds like the perfect device used in a sci fi fiction of a world that decides it must cull out certain genetic or even ethnic groups of people.
Like killing anyone who isn’t fair haired.
John Ringo actually did write such a novel as that. Amazon banned him i think.
Live Free or Die - John Ringo, first book in the Troy Rising series. It is still on Amazon.
I just wish he would write more in the series...