The formation of lumen and increased E-cadherin levels driven by a basement membrane–like matrix of ovarian cancer spheroids impart them with elastic mechanics and resilience under confinement flow. Here, CDH1 is linked to ovarian cancer.