THanks for the feedback. I had definitely misjudged the hill and was not in a low enough gear. These short, steep greenway hills are tricky!
I was definitely starting to panic, so next time I'll try to focus on flicking my foot out instead of trying to get to the top.