Good B&W negative films resolve between 100 and 150 lp/mm, roughly the same as four micron sensel cameras - the D500 and D850. Colour negative film resolves about 60 lp/mm. I have seen a wide range of figures for Kodachrome, but you would expect it to be between B&W film and colour print film, so 80 lp/mm may be about right.
So, yes, if you are looking at a Kodachrome slide under a microscope its resolution is not as high as modern digital cameras. But if you are looking at prints, it ain't the film, it's the format. Unaided human vision, under optimal conditions, can resolve about 15 lp/mm. So a 35mm B&W film, or a D850, can make an 8 x 10 print that just puts on the paper all the detail a viewer can resolve. Medium format film could put 20 lp/mm on an 8 x 10 print. But an 8 x 10 negative can put the whole 100 lp/mm on an 8 x 10 print - vastly more detail than any digital camera.