This also happens to be the playbook you are encouraged to follow if you are trying to rescue someone from a cult or domestic violence situation.
Arguing gets you nowhere; they will defend their abusers. The best you can do is innocuously show them that the reality they've been brainwashed into internalizing does not work the way they were told. They will either come to their senses--on "their" own terms--or will prove to be a lost cause.
Risking Godwin's law, imagine the extreme case of Hitler. The best strategy to convert Hitler may well be Jewish people befriending him, rather than confronting him. But in the meantime, Hitler is radicalizing others and committing genocide. At some point, it makes more sense to just assassinate Hitler (or deplatform him, or depose him, etc.) rather than trying to save him.
Killing someone for their ideas sends the wrong message and grants them more legitimacy than anything. You elevate them to the same status as Jesus Christ, whose popular namesake religion is predicated on sticking to your beliefs in the face of any and all consequence.
An example from a blog on jewelry how to counteract astrological nonsense is to point out supposedly different stones like emerald and beryl, are actually the same mineral, just with impurities like chromium present.
By presenting neutral factual information in that fashion, you can ask how or why the chromium affects the spiritual flow of the thing or whatever. It remains up to the person if they are persuaded or not.
The friendship part is probably the hardest. But what's the success rate of shaming someone into changing their mind? Pretty low to zero. It makes them dig in more.
The best example I know of is Daryl Davis (https://en.m.wikipedia.org/wiki/Daryl_Davis). He's a black man that befriends active Klan members. He invites them to bars and his home and gets to know them.
He intelligently refutes their nonsense but he never asks them to change their mind or leave the Klan. He simply waits until they want to do it on their own accord.
The problem is sometimes people get stuck in a group or culture for various reasons. The key is to give them a safe, friendly alternative rather than a violent disagreement.