Selectivity Drives Productivity: Efficient Dataset Pruning for Enhanced Transfer Learning