I think both are grammatically correct. When being presented with choices, using "which" is better (in my opinion), but "what" is not wrong either. I also do not think there is a difference in both the meanings in the given context.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Jigneshbharati"which tricks would you play"?You would say "which" if you had a list of tricks to choose from. The list could be in your mind, or written down.
AlpheccaStarsYou would say "which" if you had a list of tricks to choose from.Yes, I agree. However, using "what" when having a list to choose from isn't wrong either.
dernbuYes, I agree. However, using "what" when having a list to choose from isn't wrong either.I was giving criteria that a native speaker would use to choose which of the two pronouns to use.
Jigneshbharatithe difference between "what" and "which"what identifies.