Feel free to use either one of them. Just as you think, the latter version is a shorthand for $(document).ready()
.
The first option was available since the beginning of jQuery releases as oppose to the second option.
Personally I prefer the second version for it is shorter.