Not really a fair comparison though. Two very different vehicles. The Space Launch System is not reusable and as such, costs a lot more than what Starship will cost if SpaceX is successful with it. In addition, Starship is larger and far more powerful than SLS. Yes the SLS made it to the Moon, but by sending a small capsule designed to carry four people. The Starship is designed to be capable of carrying ONE HUNDRED people and also to function as a member of a fleet. Also, not sure where you are getting the six years, the SLS was in development for more than a decade.They're not knocking years off the DTE cycle. They're trying to spin failure as success. It's still going to take them just as long to figure this out than if they slid the program to the right to get an entire successful flight in. Remember that they still haven't tried establishing, changing, or maneuvering in orbit, nor have they tried reentry and recovery.
Artemis 1 didn't fail and it made it to the moon and back in 6 years from program start. Artemis started in 2016. SpaceX started Starship development in 2012. in 11 years they haven't made it into low Earth orbit.
Yes Starship has been in development for a decade, but in that period of time SpaceX has also achieved repeated vertical rocket landings, developed the Falcon Heavy and launched it successfully, repeatedly sent humans into space, and now full-flow staged combustion engines.