Perhaps it depends on the situation. "I didn't understand" is more direct and more common. If you reply, "I haven't understood," it tends to sound a bit high-register, unless you're actually in a formal situation, such as a debate or an advanced college English class.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.