Heat butter or olive oil in a heavy-bottomed pot over medium heat.
Add chopped onion and cook until soft and translucent, stirring often.
Add minced garlic and cook for 30 seconds until fragrant.
Add corn kernels and sauté for 3 - 4 minutes to enhance natural sweetness.
Pour in the broth and bring to a gentle boil.
Reduce the heat and simmer for 12 - 15 minutes until corn is tender.
Blend half of the soup using an immersion blender for a creamy texture.
Return soup to low heat, stir in milk or cream, and season with salt and pepper.
Simmer gently for 3–5 minutes. Do not boil.
Serve warm and enjoy.