If I have $10K in short-term gains, can I sell a security with a $10K long-term loss at use that to offset the short-term gain?