Medinas, mountains and the Sahara
A long weekend in Marrakech, with the medina, a riad and perhaps a day in the Atlas foothills, fits the 3 GB pack, valid for 15 days. Your phone will mostly be finding the way back to the riad, ordering taxis and sending photos.
A ten-day to two-week loop from Marrakech over the Atlas to Aït Benhaddou, the Dadès valley and Merzouga, then north to Fès and Chefchaouen, means long drives and nights where wifi is not guaranteed. The 5 GB pack, valid for 30 days, is the usual fit; 10 GB if you navigate yourself in a rental car. The 20 GB pack suits a month on the coast at Essaouira or Taghazout, or working through the hotspot. Top up the same eSIM if you need more, and use the data calculator to size it.