"which" suggests choice from a defined group of things, while "what" is a more "open-ended" choice. In practice, you may hear "what" even in the former case, but it can sound unrefined.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Cup cakeAdjective - what versus which"what identifies; which selects."