Do you think going all-in with QQ in this spot was the correct play, or should I have raised smaller to avoid a coinflip?
EDIT: I did a mistake on my analysis, as I considered you were at BTN, and not at MP (you didn't specified MP1, MP2, MP3...), sorry, but what I said beneath this comment is useful anyway and your situation on the middle of the table makes the things even worse for your decision, as your and villain's risk would grow even more, giving villain way more advantage against your decision...
I was writing a big text about some possibilities, but when I saw you both had like ~25bb, I just decided to say the obvious: you should simply do a mini raise (2bb) and wait for villain's reaction.
25bb of effective stack is way too big to just shove any hand without a very specific and assertive reason.
When you do a mini raise. you can filter his range by what he will do on pre-flop.
He is the BB, he would need to defend his blind against BTN a lot of times, according to GTO:
Every
green is
call, every
light-red is a
common 3-bet, every
dark-red is a
3-bet shove and
blue is just
fold.
Obviously, most part of players don't even know about this, but I'm just bringing you the base of the poker range theory...
He would fold only 17.1% of times...
Now, see how many hands villain would raise up on pre-flop against you, according to this "perfect" range:
Can you see how many hands he needs to raise against you as a 3-bet? Your QQ is clearly winning against most part of his range.
But let's look what happens when you just open shove on pre-flop:
Now his calling rate and his folding rate inverted:
he will call only 18.8% of times.
"But why this happened?", you may ask...
Because the risk for him is way bigger and he will only pay you with pocket pairs (including the AA and KK, obviously), some high connectors, and some hands that blocks your premium opening range.
But I'll be honest: I think people with a minimal sanity on their head would just call it with something like TT+ and AJs+ or AQo+ (but this may vary, obviously)...
Also, I need to say that I simulated this on GTO Wizard, with 25bb of effective stack and on a 8 players tournament situation.
And according to GTO Wizard, you should never do that open shove, as you can see:
And if you are wondering why there is no combos of all-in, I will answer you: this is a very lazy and, especially, riskily way to play premium hands (or any hands, actually).
You putted the pressure all against yourself. If that guy should just call your mini raise with a QTo on the correct situation, you made the things way more easier to him by shoving pre-flop, as he would never try to play a completely ruled hand like QTo against your QQ on a pre-flop all-in situation.
Also he would never 3-bet shove those almost completely dominated hands, like the 66, for example:
Concluding: yeah, wrong movement on pre-flop, of course; however, if you are a beginner on poker studies, this is comprehensible, but you need to never do that again (in normal situations, at least), for your own good...