Actually ... in years past, the lighter the ash, the more high quailty the cigar was thought to be ...
Personally, I don't think it really has much to do with the flavor; not as much as what blends the cigars are made with, and what contries (climates and soils) the leaves were grown in.
Magnesium is just a small part of it ...