Dont be results-oriented in poker. Always think long term. Long term you either get the blinds and antes with that shove or AK calls you as it did and you double up. With under 10 blinds its the best you could do with a pair of sevens. You cant fold it and wait for something better. You cant see a flop and set mine anymore. You were in the money and a double up could send you to the final table. Luck wasnt with you on that flip, so be it, it was the correct play, never lose your sleep over a correct play.