Deductions & credits

No, your capital gains tax rate is based on Modified Adjusted Gross Income, which adds back the excluded income.  Nice try, though.