The relevance of inside-outside segregation and chain compaction for the thermodynamics of folding of a hydrophobic protein model is probed by complete enumeration of two-dimensional chains of up to 18 monomers in the square lattice. The exact computation of Z scores for uniquely designed sequences confirms that Z tends to decrease linearly with sigma square root of N, as previously suggested by theoretical analysis and Monte Carlo simulations, where sigma, the standard deviation of the number of contacts made by different monomers in the target structure, is a measure of structural segregation and N is the chain length. The probability that the target conformation is indeed the unique global energy minimum of the designed sequence is found to increase dramatically with sigma, approaching unity at maximal segregation. However, due to the huge number of conformations with sub-maximal values of sigma, which correspond to intermediate, only mildly discriminative, values of Z, in addition to significant oscillations of Z around its estimated value, the probability that a correctly designed sequence corresponds to a maximally segregated conformation is small. This behavior of Z also explains the observed relation between sigma and different measures of folding cooperativity of correctly designed sequences.