Exactly what your instructor did. Happened to me when I was with an instructor. I was fairly new PPL student but he took control and landed straight away to check for damage.
Rather be safe than sorry, as we couldnt see if there was any problem with the flaps which is where they hit