In my opinion, Chania is a better place to stay if you want to see many famous sights and beautiful beaches even though it is more touristy and expensive than in Heraklion. The best option is to stay in each area for a few days to experience both sides.