A: Are you willing to compromise?
B: Yes, but only to some extent.
You could use degree here, but to me extent sounds more natural.
Basically they are interchangeable. However, "to some degree" would be more commonly used when there are actual graduated levels or different degrees of something.
Also, we frequently substitute certain for some, as in, "to a certain extent" or "to a certain degree"