gettransaction,listtransactions, andlistsinceblocknow have analternate_wtxidsfield which lists the wtxids of all transactions that have the same txid. When there is only one known witness variant the field is an empty array, analogous towalletconflictsandmempoolconflicts.