It's superior in the sense that with digital there are no intermediate steps that reduce resolution or dynamic range or any quality of the photo. Any time an image has to be "interpreted" there is usually some loss of data in the image.
OTOH, what an experienced photographer can do with slow speed slide film and what a less experienced shooter might do with, say, a 2 megapixel digital camera are often worlds apart.
Getting the right exposure is key. If you take a great photo with slide film (or negative film) and you've got a terrific exposure that yields maximum density, that photo is going to look awesome if you scan it directly through a quality scanner. And it will almost certainly look better than most photos taken with a low to mid consumer level digital camera ... especially if the exposure on the digital shot is off even a little.
The variables all change with the equipment and the process. There are lots of different types of digital cameras with different capabilities. Lost of different types of film to work with. Lots of various scanners or film scanners with various levels of quality. But still the most important variable is the person pushing the shutter button. Knowing what to shoot and how to correctly expose the shot is what separates the great shots from the okay ones.