The Impact of Coreset Selection on Spurious Correlations and Group Robustness