Process 1 can corn in blender until smooth, stopping to scrape down sides.
Stir together pureed corn, remaining whole kernel corn, flour, and next 3 ingredients in a large bowl. Whisk together milk, next 3 ingredients, and, if desired, vanilla extract. Stir into corn mixture. Pour into a lightly greased shallow 2-quart baking dish.