Regarding discussion on wtxid indexation, Core indexes by wtxid only for its mempool. Non-mempool txs are not announced and cannot be requested by wtxid. Of course only its confirmed txs are persistent, so malleation is really just a question of which competing witness serialization is accepted into the pool.