Sorry, but Palantir doesn’t get off that easy. They know full well how their technology is used. Just because a market exists that doesn’t mean you need to fill it. The tech industry could have taken a moral stand like the chemical industry did with execution drugs.
If you watch any entrepreneur-focused channels, the entire premise of Palantir was "what if we just didn't care about what people think is ethically dubious? What if we went into business in all the places that people have traditionally shied away from for moral reasons?" It's part of Thiel's "Monopoly is good/You want to build the 0 to 1, not jump into a crowded market" mantra.