Diagnostic surgery is a procedure performed to obtain a tissue sample for examination and is crucial in determining whether a tumor is benign or malignant. This surgical approach helps in identifying the type, stage, and extent of cancer, thereby aiding in formulating an effective treatment plan.