Deductions & credits

Is my CPA wrong on advising me that I won't have capital gains on assets expensed under the safe harbor rules? Or are you disagreeing with the advice to switch from an S Corp to an LLC with an S Corp election?