The Effect of Topology on Phase Behavior under Confinement