I would prefer a Nexus software S4 to a Samsung software S4.
I can't see any significant way that it is worse for Google for people to have their software rather than Samsung's.
Although neither S4 justifies the price jump from a cheap Nexus 4 for me.
And assuming some people want a high end "Nexus Experience" phone, Samsung gets more customers this way, than if Google went with HTC.