Disagree. Keyboard is much more precise, and quick to react. Like, in Hollow Knight, if you have to change direction, it's much quicker to stop pressing right and start pressing left than move the stick to the other side
You don't have a finger dedicated to each button on the d-pad tbf. It's still considerably slower, but I would prefer a controller for most 2D games in general.