For things I would formerly use a web browser to look up, Gemini is often a lot better than gpt-4. The more obscure the query, the better Gemini does compared to gpt-4.
But gpt-4 is still best for ML Python coding. Gemini hallucinates non-existent libraries and often adds unnecessary junk to its code. For example, Gemini often defines spurious variables and then never uses them.