Toe nail infection came back two years after treatment, I want to solve the problem but am worried about drug resistance.

See below. What type of infection. If bacterial then you need an antibiotic if fungal then you can use a topical if concerned about oral meds.
Get the nail out... If the offending corner of the nail plate is removed you may not need ant antibiotics. See a podiatrist for treatment.