I think thats the right play, certainly against 2.

Get it all in with the best hand. What did he have, like... 4 outs? Ah well, at least he only got 6.65 of your stack