"Thử" is more like "try"
"Cố gắng" is more like "attempt"
You can use them interchangeably but a native speaker might not.
I "attempted" these clothes on vs I "tried" these clothes on. You get the meaning but it's kind of funny.
P.s. cố gắng is my default.