The decision is between the play you made and playing the A in the mid and the 9 in back (to make 1 pair). I think your play is by far best because not only have you got the top and mid parts of an FL hand made, but with two draws to come you have a straight-flush draw and six 2-pair outs, so some hand that beats AA is very likely to pan out.