The ONLY time it’s fine is if it’s in a medical report or scientific paper. Written by actual doctors or scientists. And it is done to dehumanize the subject to make it easier for, say, a medical examiner to write a report without breaking down.
Using male and female for people is inheritantly dehumanizing, and that’s only ok in very specific circumstances.
I don’t like mug root beer. Easy choice