Tunisia has been under a formal state of emergency since 2015, with its security problems concentrated in border zones and a few inland mountain areas.
The honest position is that a medina is difficult and a modern Moroccan city is not. Planning around that difference is what makes the country workable.
Morocco is among the more straightforward African countries to travel in. The realistic risks are theft, confidence tricks and laws that differ from home.