Buying "nominally the same securities" is exactly the reason why tax-loss harvesting is borderline illegal. It goes directly against the IRS warning on "substantially identical" securities.
http://www.investopedia.com/exam-guide/series-7/investment-r...