expression
that's not a nice thing to say; there was no need to say that
A set phrase used to criticize someone's remark as unnecessarily harsh, tactless, or mean-spirited. Often said in response to a specific statement.
See also: 言うに事欠いて (いうにことかいて)
「あの服、全然似合ってないね」なんて、言うに事を欠いてそんなこと言わなくてもいいのに。
Saying 'That outfit doesn't suit you at all' — you didn't have to say something like that; there was no need.
彼は言うに事を欠いて「君の料理はまずい」と言った。
He went so far as to say, 'Your cooking is terrible' — that was really uncalled for.