You can use prioritisetransaction
to reduce the perceived effective feerate of the original transaction in your own mempool. If you lower the feerate enough, and your mempool is full, it will be removed the next time transactions are evicted.
If the original transaction signaled RBF, or your node uses the mempoolfullrbf
startup option (enabled by default starting with Bitcoin Core 28.0), deprioritizing the original transaction will also make it easier to replace it, since the modified feerate is used as basis to evaluate a replacement. Note that this only affects your own local mempool, and other nodes that still have the original may not accept the replacement unless it fulfills those nodes’ criteria for replacement.