Can you get a guide book and figure out which city gives you more appeal?
One could argue equally well for a 3-3 split, a 4-2 split, or even scrapping one altogether. Both have enough to fill 3 days, perhaps many more, depending on your interests. Plus, in Shanghai you might consider a trip to Hangzhou or Suzhou, which would tilt in favor of an extra day there.