Cheat:The simplest and easiest way is to always either make the antecedent plural;
“People like their pancakes hot” rather than “Everyone likes <oops, now what) pancakes hot.”
It is easy to sneak around RH’s examples;
“This person got really badly hurt.” Use name.” Richard (or Gail) got really badly hurt.”
“What happened to him? What happened to her?”
(And never “What happened to he (or she).”
Similar for “My boss.” Presumably, I know his or her sex.
Formality counts in written English. We all slop around when we speak; “It’s me,” for example.