Good advice above. The old cities are amazing.
I'd suggest you consider opting to stay in a traditional riad (inn) rather than a western chain hotel. Plenty to choose from.
One other consideration: they had a major earthquake earlier this year (just in September, so not so long ago) that absolutely devastated parts of the country (primarily the old towns in and south of the Atlas Mountains, but damage was quite widespread, and a lot of things in Morocco are – or were – made from simple, un-reinforced mud brick construction that basically turns to rubble instantly in an earthquake...google "Morocco earthquake 2023" to see; Marrakech was hit pretty hard).
You'll want to check to ensure going to the places you choose will benefit the locals more than getting in the way of recovery/rebuilding efforts, which will continue for years to come. I'm sure most tourist areas will be very hungry for your business, just choose wisely knowing that some places are still only beginning to recover.