Jack is not stupid, first of all.
Secondly, Jack doesn’t even need to be consciously aware of Dorothy’s weakness to beat her. You can literally escape from Dorothy’s dream without even being aware of her weakness, just by accidentally making her think of an escape.
Dorothy is the only Clover Captain who can be defeated on complete accident.