Yeah, I heard it was replaced about 5 years after it was adopted by the M16 then later the M4.
I suppose you could think the M1903 was still "in service" during the Korean War also because a couple of hundred snipers used them... mostly because it was what we had gathering dust.
The military being what it is (conservative), it tends to fight the last war. The Garand was designed for WWI. It served ok during WWII mostly because the Germans will still also attempting to fight WWI. Hitler really loved the K98. When the Garand was matched up against a MP38/40 in urban warfare, GI's were in trouble. The Germs had many times the number of subguns as we did, because the idiots at ordnance were still fighting WWI.
The M14 was little more than a M1 with a box magazine. Nearly useless in urban fighting and uncontrollable on auto. We tried to give away M14s for decades but no one was interested. My current employer has hundreds if not thousands in a few warehouses. It is one of the biggest failures in history.
Despite all the myths otherwise, there are but a few hundred M14s in service--again, just because they are "good enough" for DRM/sniper spotter role though not really good enough for sniper use (3-4" moa for a standard M14), but mostly because they are free- and probably a half a million M16s/M4s in active service.
Spec Ops troops have almost always had other weapons at their disposal, inluding M14s, but we rarely chose them. There is of course, a role for DRM and the military sorely needs a weapon capable of doing the role. They have recognized this, finally. I have heard the military is not happy with the M14 in the role and have instead adopted the Knight SR25 for this purpose. We'll see what pans out.