So Stock "A" was acquired a 2 years ago and the loss on sale of Stock "B" was in January of this year, so the 30 day rule appears to be OK. The issue if they are similar or identical is not valid for these stock. Very different holdings.
I have not sold the L-T capital gain stock ("A") yet, but doesn't it make sense to sell the winner now ("A"), offset the gain with the loss and avoid the tax on capital gains (sometime in the future) and then repurchase the stock back the next day. This basically resets the purchase price of Stock "A" at a higher price. Am I looking at this correctly.