bookings – Accommodation in Istanbul – book online or in place?

I’m going to visit Istanbul in October-November for one week on ​vacation.

Is it better to book accommodation online in advance, or just in place when I come there?

If I book online, what is the best (availability and price) time to book it prior to my stay?