Definately suggest you leave the airport.
The super convenient airport express links right into the subway (two tickets) and you could see many things with 12 hours (or one thing at great detail).
The Forbidden City, The Temple of Heaven come to mind. . .