It searches all indexers and grabs the best quality release available. By default usenet releases are preferred, but you can change that with a delay profile. If torrents are grabbing before usenet has releases you can also use a delay profile to delay the grabbing and Sonarr will grab it when the release is x time old.