Free energy and segregation dynamics of two channel-confined polymers of different lengths.