Experience, mostly, and bit of trial-and-error. For code I use SOTA, but for e.g. translations I use Gemini 3.5 flash, for some other use-cases I use Gemma 4.