I have to agree. Also, Pisa is very close to Livorno. You could actually take the train to Florence, take an early return and then grab a taxi to Pisa. Pisa will only entertain you for 20 to 30 minutes and then you will want to head back to the port.
Either way, you can easily acomplish both in a day
Have a great time in Italy.