We study the spatial organization and segregation of two self-avoiding polymers trapped inside a closed cylindrical pore. Using molecular dynamics simulations, we show how confinement shapes the chains, especially their mutual (entropic) force, chain miscibility, and segregation dynamics. Under strong confinement, the chains are shown to repel more strongly and thus segregate better, if they are shorter and the confining space is more asymmetric.