Elucidating the origin of diastereoselectivity in a self-replicating system: selfishness versus altruism.