Request::isMethod
is basically doing what your second example is doing but internally. It's a method on Symfony\Component\HttpFoundation\Request
which simply gets the request method and compares it to the method you provide as the first parameter.
So the only difference is that you have to write more for the second one.