User behavior: Search button or input field to search the top navigation bar of the website?

I'm curious about the difference in effectiveness between the search button and the input field to search in the top navigation bar. Is the search button or the input field better?

If you have to choose one of them, which one do you choose to put in the top navigation bar? Why?

Thank you