PURPOSE: This randomized phase III trial is studying cytarabine and two different doses of daunorubicin to see how well they work compared to cytarabine and daunorubicin followed by gemtuzumab ozogamicin in treating older patients with acute myeloid leukemia or myelodysplastic syndromes.