UNSEEN: Enhancing Dataset Pruning from a Generalization Perspective