Think about it realistically and not just within the context of a red flag type situation.
Imagine you have a dispute with the neighbor. That neighbor makes a false report saying you are mentally dangerous, that you are prone to anger and need to be committed to a mental hospital. Cops come to investigate to see if the report is real and try to talk to you following which they will write a report to document what they saw and did. You can calmly and politely address them, ask them a few questions and decline to answer certain questions or you can tell them you get off your property, insult them, give them the middle finger, etc. Now imagine a judge and/or a mental health doctor reviews that report in making a decision concerning you, which type of behavior is going to be better for you?
Even if nothing is going to happen in behaving like this youtuber did, there is no benefit for him to behave this way. Well I suppose he may benefit from views on youtube but in terms of dealing with whatever the cops were there for, nothing he did benefitted him in any way. Or am I missing something? Was being confrontational like this a benefit over being calm and polite?
Cops are not trained nor qualified to evaluate someone's mental health status.
If the person in your simple hypothetical has not broken a law, there is nothing the Cops can do. A mental health evaluation can only be ordered by a judge based on observed behavior.
What you are trying to say is that Cops can use anything you say against you to have you detained for a mental health exam. That's when Cops start using standard words to get anyone they want evaluated -- no different than claiming disturbing the peace or obstruction when there was no law broken to start with.
So, the only way you can help yourself is to say nothing at all. Don't give the investigating Cops anything to use against you.
You have NO LEGAL DUTY to assist in any Cop's investigation. Period.
If you are being interrogated and detained, availing yourself of the right to remain silent is not to be construed in court as if you are more guilty than a "cooperative suspect."