Good point, though the result of my clever maneuvering is having to deal with a loss carry forward for a long time due to the amount involved.
I guess the bright side is that when I finally have some capital gains to report when I retire, I'll have something to offset them as the amount is large enough that the capital loss deduction allowed for ordinary income won't even be close to depleting it when I hit retirement age.