Your analysis should be correct based on my understanding of the tax treatments
It might not matter though. If you have to file anyways then shoot for profit.