Let’s say I earned 100k this year through buying and selling of stocks. I’m now sitting on a stock that is 20k under but haven’t sold it. It’s a long term investment so I’m not too worried. But would it make sense to sell it at a loss before end of year to report it as a loss to offset taxes on my gains? Then quickly buy it back?