stick it out

中上級 (B2) informal

Stay with something hard and don't quit, even when you really want to.

"The first year of the degree was tough, but she decided to stick it out."