If you want the car to be close by, stay wherever and then park at the port. If you want to save some money on the port parking fees, look into the nearby hotels that have the cruise parking packages. I've done both, and really don't think you can go wrong either way, especially if you can pack light.
The last time I did one of the park & cruise packages at a nearby hotel, it was at the Radisson Resort at the Port in Cape Canaveral. Overall, it was fairly nice hotel, even though it's older, and we got a free breakfast as well. Their shuttles to/from the port were very organized and the staff was excellent. For my next cruise in January, my sister and I are staying at the Country Inn & Suites Cape Canaveral and will be leaving the car there. It's just a tiny bit further away, but it was a bit cheaper and it's a newer hotel. I think we get free breakfast there as well.