Certain types of cancers, particularly those that are localized and have not metastasized, may be best treated through surgical intervention. For example, pancreatic cancer and liver cancer often require complex surgeries to remove the affected areas while minimizing damage to surrounding tissues. These procedures can significantly improve survival rates and quality of life for patients.