That sort of transaction would look very suspicious to an auditor. It's a perfect example of the tax wash sale rules.