The one time I used booking.com I got screwed over. Their website is riddled with dark patterns and has probably been A/B tested into oblivion. The tactic they used that screwed me over was that they advertised 100% refunds on last minute cancellations. I used booking.com for this exact reason as I didn’t know if I’d be staying the night in the city I was driving past. Well turns out I didn’t need the booking but whe…
Book directly with the hotels if possible. Lots of hotels will forgo the 24-hour cancellation charge if you ask nicely. Hotels can't do much if you book with a 3rd party since you're a customer of the 3rd party, not with the hotel.
However, with flights and flight search websites I do sometimes see close to equal pricing, and in that domain I almost always check the airline website itself and book directly when possible.