I sweat... A LOT. I've often just had disposable gym clothes because I could never get the stink out consistently so once they hit that wall I had to get rid of them.
I've tried lots and have been very successful using Hex and my clothes stay stink free and the fabric stays nice as well.
HEX Performance Anti-Stink Laundry Detergent, Free + Clear, 32 Load (Pack of 2) https://www.amazon.com/dp/B07FN42ZMT/ref=cm_sw_r_cp_apa_i_261hDbMBQ0DSY
You can get it cheaper at Target than Amazon, like 6 bucks a bottle