Elastic net for feature selection

r

#1

How can we use elastic net for feature selection?
Lets say we are having correlated features, and we use elastic net to penalize this. So , now the coefficients we get are important features? Is it better than ridge in terms of feature selection?