What happens if a defender explodes the hatch the defuser is on?

Yes

Indeed, the attackers still lose since the defuser is destroyed this way.