firstOrCreate is a convenience method in Eloquent that wraps one or two queries; a read to determine if there is an existing record, and a write if it does not exist.
The Query Builder is "closer to the metal" giving us developers the tools to perform those queries ourselves.