Unfortunately not, except for certain reinvestments in qualified small business stock or empowerment zone business stock (see the Schedule D instructions for these special rollover rules). Apart from these exceptions, all of the gain on the sale of one stock must be reported even if other stock is purchased. The like-kind exchange rules do not apply to securities (stocks, bonds, notes, etc.).
Items directly reducing income. Personal deductions such as for mortgage interest, state and local taxes, and charitable contributions are allowed only if deductions are itemized on Schedule A, but deductions such as for alimony, capital losses, moving expenses to a new job location, business losses, student loan interest, and IRA and Keogh deductions are deducted from gross income even if itemized deductions are not claimed.