The choice of medication depends on various factors, including the type and stage of cancer, the patient's overall health, and genetic factors. Oncologists use diagnostic tests and biomarkers to tailor treatments. For instance, targeted therapies are selected based on specific genetic mutations in the cancer cells.