Well, to be fair, they have very different goals.
NASAs main goal is research and development for all matters of space, which they have done exceedingly well at. They've created permanent space stations, have invented countless new materials, have studied extensively about biology within space, have launched countless probes within our solar system and beyond. They have measured so much data and learned so much, they've tracked almost every large space rock within the solar system, have landed probes on other planets, have taken pictures of pluto and the close up of the sun. Have launched space telescopes that can see other galaxies. They have also contributed to data collection on earth, modelling the climate and being pinnacle in the evidence for climate change and global warming as well as being extremely important for telecommunication infrastructure that would bring rise to the internet and GPS. All these achievements, the huge amount of data that has been acquired by NASA over their short tenure of only 60 years or so has truly been an astronomical achievement in progressing human understanding, without this data Space X would not exist.
SpaceX on the other hand is entirely focused on rocket propulsion and increasing access to space. They have considerably narrower goals and thus it's only natural that within their much narrower scope they would have achieved much more. So yeah SpaceX have invented more sophisticated rockets that definitely look cool, but to say that these achievements are even equivocal to the achievements made by NASA ignores almost everything that NASA does. Elon Musk has a great marketing team, so you need to be careful. SpaceX is doing great though, and if you wanna donate to SpaceX by all means do so, and having more people work on the problem is always good, but don't say SpaceX is doing better than NASA, saying that is ignoring so much. (On a side note they've also been running for 17 years, so more than the 5 years you've thought about)