We call this validation.
Note in here too - often in the current american culture - we have some pretty polarized views & the emotions run heavy, it's likely anything but agreement can trigger the unwanted conflict. That's why I recommend people deal with the human connection & not the statement.
You know potentially the other person might be spoiling for a fight or be hurt inside if you don't agree. So instead of validating the discussion, you validate the human & seek to gogrow your connection with them.
First you accept & validate that they were talking to you, "Thank you for sharing!" or anything similar, ... its short and address the human behind the statement without engaging the statement. Be sure your delivery is adjusted to the audience...some people in a snarky atmosphere might mistake what you said.
Normally, based on the situation & how much you care - you could tie it to them personally, with a sentiment of caring, "I imagine that affects your life a lot." or close to this which lets them talk about their distress which was caused the superficial statement they made.
Side note: Most of my philosophy comes from humans are emotional & the emotion has to be handled before the logical points.
Have you ever looked into non-violent communication
? Its my go to in tough situations, but pretty basic, "I think I see what you mean when you say {POINT}, it's that {SUPPORTING POINT}". Then they reply back confirmation. It helps defuse down the emotional turmoil too, especially if you are able to say something like, "This is a problem, how do you feel it really effects you?"