To compare the effectiveness and toxicity of didanosine (ddI) and zidovudine (AZT) in patients with AIDS, advanced AIDS-related complex (ARC), or asymptomatic infection with CD4 counts < 200 cells/mm3.