PMs recover fast (e.g. see post 2008), though we're talking miners, not physical metal. Unless you absolutely need to sell during the worst trough, you should be fine (like, are you so greedy, that you need to be all-in in stocks all the time?). The miners will have a minor temporary EPS compression (several months or so) and a significant P/E compression (stock market dumps), but this should still fare better than crude oil producers (recover faster).
Crude oil producers are a much better buy near the worst point of a recession (compared to PMs/miners), but how exactly can we tell, whether there will even be such a great buying opportunity in the foreseeable future?