Quote from Robert A. Green:
Yes, you are mostly right on.
Just make sure your Form 4797 total proceeds are equal to or greater than the Form 1099-B proceeds.
For example in prior years, if you traded stocks and stock options, the 1099-B reported proceeds for stocks only, not stock options. (Options aren't reported in proceeds until 2013). So your Form 4797 would have both stocks and stock options in proceeds and the 1099-B would only have stocks, so the Form 4797 proceeds would be greater. That was enough to satisfy the IRS-computer matching program, so you didn't get an IRS tax notice with questions about it.
We hope the IRS computers dial down a big notch for 2011 taxes, and don't send tax notices to taxpayers who have Form 8949 cost-basis reporting mismatches with Form 1099-Bs, since the latter are very botched to date.
The problem for 2011 is that many brokers adjusted proceeds in inappropriate ways and that will mess up reconciliations further.