My understanding is that polyester and other sweat-wicking materials are better for preventing chafing and allow for faster drying, whereas cotton absorbs and stays wet, which is more abrasive.
For me, either the shorts with a liner work best or commando in leggings. I don’t particularly have issue with my bits moving, I just want them to stay put.