You point is correct, but SpaceX is competing directly with the SLS which according to Wikipedia is designed by NASA. I am under the impression that the ULA will produce the SLS, but after a quick search I can only find reference to ULA producing the upper stage (
http://www.ulalaunch.com/united-launch-alliance-hosts-nasa.a...). NASA as a whole is not competing with SpaceX, but some parts of it are, unless "designed by" really just means "funded by".