It's not always quite that straightforward, as which version and which features you enable can make a difference. https://bitcoinops.org/en/topics/transaction-origin-privacy/
Using tor or i2p only can work too, though it can put you more at risk of eclipse attacks. Some of the newer approaches to the use of short lived tor or i2p connections to obfuscate the source of an original transaction can assist in addressing issues that come up if you run both on tor and clearnet.
