Diagnostic surgery is often recommended when other diagnostic tools such as imaging studies, blood tests, or non-invasive biopsies are inconclusive. It becomes essential when there's a need to remove a larger tissue sample or when the suspicious area is not easily accessible.