It depends on what you are looking for. For the history buff, the architecture and buildings (palaces, tombs, Great Wall) are all in Beijing, while the cream of the national treasures are in Taipei.
Taipei is friendlier for its people and environment. Beijing can get overwhelming.