testing the addition of an anti-cancer immunotherapy drug, avelumab, to gemcitabine and carboplatin chemotherapy prior to surgery in muscle invasive urinary tract cancer vs. surgery alone in patients who are not able to receive cisplatin therapy (swog gap trial)

Conditions: Bladder Carcinoma Infiltrating the Muscle of the Bladder Wall; Infiltrating Renal Pelvis and Ureter Urothelial Carcinoma; Stage II Bladder Cancer AJCC v8

Summary: this phase ii trial studies the effect of avelumab, gemcitabine and carboplatin before surgery compared with surgery alone in treating patients with muscle invasive bladder or upper urinary tract cancer who are not able to receive cisplatin therapy. immunotherapy with monoclonal antibodies, such as avelumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. chemotherapy drugs, such as gemcitabine and carboplatin, work in different ways to stop the growth of tumor cells, either by killing the cells, by stopping them from dividing, or by stopping them from spreading. giving avelumab together with gemcitabine and carboplatin before surgery may work better in lowering the chance of muscle invasive urinary tract cancer growing or spreading, in patients who cannot receive cisplatin therapy compared to surgery alone.

primary objective: i. to compare pathologic complete response (pcr, pt0n0) with avelumab plus gemcitabine and carboplatin (agca) versus (vs.) no neoadjuvant therapy preceding protocol surgery for muscle-invasive bladder cancer or upper tract urothelial carcinoma (mibc/utuc) for participants who are ineligible for cisplatin-based chemotherapy. secondary objectives: i. to evaluate toxicities with agca, and to compare resectability rates and surgical complications by arm in this population. ii. to compare event-free survival (efs) with agca versus no neoadjuvant therapy in this population. iii. to compare overall survival (os) with agca versus no neoadjuvant therapy preceding surgery in this population. iv. to compare pathologic complete response (pcr, pt0n0) with avelumab plus gemcitabine and carboplatin (agca) vs. no neoadjuvant therapy preceding protocol surgery in the subset of participants who received at least 2 cycles of neoadjuvant therapy in arm a. banking objective: i. to bank tumor tissue, blood, and urine for future correlative genomic, transcriptomic, and proteomic studies to discover molecular signatures associated with pcr and resistance. outline: patients are randomized to 1 of 2 arms. arm a: patients receive avelumab intravenously (iv) over 60 minutes on day 1. treatment repeats every 14 days for up to 6 cycles in the absence of disease progression or unacceptable toxicity. patients also receive gemcitabine hydrochloride iv over 30 minutes on days 1 and 8 and carboplatin iv over 30 minutes on day 1. treatment repeats every 21 days for up 4 in the absence of disease progression or unacceptable toxicity. within 4-8 weeks after final systemic therapy, patients undergo standard of care surgery. arm b: patients undergo standard of care surgery. after completion of study treatment, patients are followed up every 12 weeks for years 1-2, every 6 months for year 3, then annually in years 4-5.

Eligibility criteria:
inclusion criteria: * participants must have one of the following: * histologically documented muscle-invasive bladder carcinoma (mibc) from transurethral resection of bladder tumor (turbt) within 56 days prior to registration * histologically confirmed high grade upper tract urothelial carcinoma (utuc) within 56 days prior to registration, with invasion confirmed by either a mass on cross-sectional imaging or a tumor directly visualized during upper urinary tract endoscopy within 56 days prior to registration * participants diagnosed with mixed urothelial carcinoma and variant histology within 56 days prior to registration may be eligible if the majority (\> 50%) of the tumor consists of urothelial carcinoma. participants with pure non-urothelial variant histologies or any small cell histology are not eligible * participants must have clinical stage t2-t4an0m0 bladder or upper tract cancer confirmed by radiologic staging (computed tomography \[ct\] scan/magnetic resonance imaging \[mri\] abdomen and pelvis, and ct scan/x-ray of the chest) within 56 days prior to registration * participants must have a bone scan within 56 days prior to registration if they have bone pain or elevated serum alkaline phosphatase * participants must have a bimanual examination under anesthesia within 56 days prior to registration * participants must not have received prior systemic chemotherapy, immunotherapy or radiotherapy for the treatment of muscle invasive bladder cancer (mibc) or upper tract urothelial carcinoma (utuc). other prior pelvic radiotherapy is allowed if it does not preclude surgery (radical cystectomy, nephroureterectomy or ureterectomy, based on location of primary tumor). prior intravesical therapy is allowed * participants must not have received immunosuppressive medication within 14 days prior to registration, with the exception of intranasal, inhaled, topical steroids, or local steroid injections (e.g., intra-articular injection) systemic corticosteroids at physiologic doses not to exceed 10 mg/day of prednisone or its equivalent * participants must be \>= 18 years of age * participants must have zubrod performance status 0-2 * participants must have history and physical examination within 28 days prior to registration * participants must be surgical candidates as deemed by the local site oncologic surgeon within 28 days prior to registration. this must be clearly documented * participants must have a serum creatinine =\ = 30 ml/min using the crockroft-gault formula. this specimen must have been drawn and processed within 28 days prior to registration * participants must be deemed cisplatin-ineligible based on greater than or equal to 1 of the following: * zubrod performance status = 2 * creatinine clearance (calculated by crockroft-gault formula or measured) 30 to \< 60 ml/min, * neuropathy \> grade 1 * hearing loss \> grade 1 * congestive heart failure \> grade 2 * hemoglobin \>= 9.0 g/dl (within 28 days prior to registration) * absolute neutrophil count \>= 1,500/mcl (within 28 days prior to registration) * platelets \>= 100,000/mcl (within 28 days prior to registration) * total bilirubin =\< 1.5 x institutional upper limit of normal (uln) (within 28 days prior to registration) * aspartate aminotransferase (ast) =\< 2.5 x institutional uln (within 28 days prior to registration) * alanine aminotransferase (alt) =\< 2.5 x institutional uln (within 28 days prior to registration) * participants with known history or current symptoms of cardiac disease, or history of treatment with cardiotoxic agents, must have a clinical risk assessment of cardiac function using the new york heart association functional classification and be class 2b or better * participants with known human immunodeficiency virus (hiv) must be on effective anti-retroviral therapy and have undetectable viral load at their most recent viral load test and within 6 months prior to registration exclusion criteria: * participant must not have any other prior malignancy except for the following: adequately treated basal cell or squamous cell skin cancer, in situ cervical cancer, prostate cancer gleason score =\< 3+4 in active surveillance, adequately treated stage i or ii cancer from which the participant is currently in complete remission, or any other cancer from which the participant has been disease free for two years * participants must not be pregnant or nursing due to the risk of harm to a fetus or nursing infant. women/men of reproductive potential must have a negative serum or urine pregnancy test within 28 days prior to registration and must have agreed to use an effective contraceptive method. a woman is considered to be of "reproductive potential" if she has had menses at any time in the preceding 12 consecutive months. in addition to routine contraceptive methods, "effective contraception" also includes heterosexual celibacy and surgery intended to prevent pregnancy (or with a side-effect of pregnancy prevention) defined as a hysterectomy, bilateral oophorectomy or bilateral tubal ligation. however, if at any point a previously celibate participant chooses to become heterosexually active during the time period for use of contraceptive measures outlined in the protocol, he/she is responsible for beginning contraceptive measures * participants must not have a history of active primary immunodeficiency * participants must not have a history of or active autoimmune or inflammatory disorder, with the exception of vitiligo, alopecia, hypothyroidism (stable on hormone replacement), or chronic skin condition that does not require systemic therapy