that is OK if you are not going to claim a capital loss.
you can't buy for 30 days after the sale in order to claim your loss.
many on this board would lose out on their capital if they were to buy and sell using your logic.
Not to say that your sell and buy won't make you money, espcially if there is a quick rebound. and you sell.