There’s an art to it, but civility isn’t about avoiding all conflict. A prosecutor can have a perfectly civil conversation where they threaten someone with execution if they don’t accept a plea deal. A few mocking jabs about how incorrect someone’s statement was is fine as long as you’re mocking what was said and not their person, manor of speech, accent, speech impediment, etc.