The best option without a doubt is to exchange your money once you arrive in Morocco: there are many exchange houses spread across Morocco and you can exchange money at will throughout your trip. Fortunately, they usually offer a similar exchange rate, so no need to obsessively check several money changers.