If he had JJ+ or better I think you were just doomed to lose this hand. Like you said, even if you flatted you would have pushed him all in after the flop.