Line-up question

Cooks or Ertz in the flex position week 6.

Ertz is the safe play, don’t love Cooks vs the Niners D