Choosing a blockchain fork in Bitcoin Core
From what you linked it seems to me that preciousblock doesn't supersede a longer chain, it just prioritizes one block over another at the same height.

You could call bitcoin-cli invalidateblock &lt;blockhash&gt; on the first block of the chain that you wish not to follow.