It really depends on the game. For example, lego games have terrible keyboard controls, so I use a controller for those.
But in general, I prefer to use a keyboard and mouse.
I wouldn't say either one has an advantage. It really depends on the person. You may be better with a controller, but I am normally terrible with a controller. I am good with a keyboard.