The ability to discriminate between different stimuli, such as sounds or visual patterns, that are similar in nature.