Ho chiesto a CHATGPT "A company could agree to sell an asset to a counterpart at a capital gain and at the same time also agree to buy an asset from the same counterpart allowing them a matching capital gain. This type of transaction is known as a "wash sale."