You don't have to explain it any other way. It is simply incorrect from everything I have seen from the IRS unless you have a source that says you can barter whatever goods and services and as long as they are equal value there are no tax implications. Sorry but I do not believe that exists, or at least I have been looking for it and have been unable to find it. I wish that was actually true because then I could barter away to my hearts content and avoid excess taxes. So please provide the IRS guidance if you have it. I am being 100% serious here.
For swaps and barters you aren't buying anything. You have already bought something and later are choosing to exchange or swap that for something different. And yes it does matter what you are swapping in order to meet certain rules, otherwise they could consider it a gain if you are trading for a completely different product or service that is worth more than you originally paid for what you are trading.
And yes they in general will take your net value agreement unless it is obviously a lie. But just because the value is equal doesn't mean that it is tax free. You can't just trade whatever you want as you are saying. Unless it meets certain stipulations you would have to apply your costs for what you purchased when you purchased it vs the value of what you received when you received it, possibly resulting in capital gains as if you had sold it.
It requires other sections to be applied to be tax neutral such as a "similar exchange on a noncommercial basis."
https://www.irs.gov/publications/p525#en_US_2024_publink1000229343
"Miscellaneous Income
This section discusses various types of income. You may have taxable income from certain transactions even if no money changes hands. For example, you may have taxable income if you lend money at a below-market interest rate or have a debt you owe canceled.
Bartering
Bartering is an exchange of property or services. You must include in your income, at the time received, the FMV of property or services you receive in bartering. If you exchange services with another person and you both have agreed ahead of time on the value of the services, that value will be accepted as FMV unless the value can be shown to be otherwise. Generally, you report this income on Schedule C (Form 1040). However, if the barter involves an exchange of something other than services, such as in Example 23, later, you may have to use another form or schedule instead."