To be fair, in this hypothetical, if SHA-256 had indeed been broken, the difficulty wouldn't matter because the underlying cryptography keeping Bitcoin secure would itself be vulnerable.
However this won't happen out of nowhere from quantum computers. When a hash function is close to breaking there will be research leading up to the final crack.
There will be plenty of time to transition to a more secure alternative. Satoshi himself discussed this.