the parent's assumption is "if you have any empathy for X people". from deir yassin to modern day. That assumption does not hold.
Okay, we are talking about an extra 5 minutes of scrutiny, not cruel and unusual punishment. I don't think it's really that "horrible" to make people from countries with bad track records jump through some extra hoops.
To use a real example... it would be like me doing extra background checks on Chinese people applying to my company vs. Norwegian people. Not all Chinese people are spies, of course, but I've never heard of Norwegian moles infiltrating US companies and lifting IP back to the motherland being a rampant problem.
5 minutes if you decide to go along and reveal your entire digital life to the TSA.
Furthermore, CBP and ICE both claimed their authority to search electronic devices at the border extended to US citizens, so much of the profiling was not just of people from certain countries, but from people whose ancestry was from certain countries.
Lastly, I can't and won't try to convince you that it's wrong to subject people of various backgrounds to different, worse treatment, whether it's "cruel and unusual" or unfair, or invasive, or even simply inconvenient. It sounds like you aren't usually subject to such treatment or else you would probably have a different outlook on it. I recommend talking or listening to some people who do, and what their experiences are like.