a tyre defective – from how much mm profile depth difference does it make sense to replace both?

Hello, is it already in the title, a tire is irreparably damaged. Am I now considering whether I can replace only one or the same one. What do you think? How much mm difference on an axle are no longer meaningful? Thank you