了解 is closer to 'got it' in English, showing a general understanding of a situation or person. On the other hand, 理解 expresses a deeper understanding of the logic or reason behind something. However, there are some situations in which both can be used.