according to the 'marvel rating system' magneto isn't as smart as doom. besides, doom has beat the fantastic four before all by himself. but magneto has beat the x-men before all by himself. i have no idea who would win. i'd say doom, if he had the chance to plan ahead. he would come up with something, some back-up plan to kill magneto.
there goes that cliche that steroid users aren't mature.