The targeting of the Nexus line was completely different to Pixel though, they could easily have co-existed. And there was a gap between them. I've never worked for Google, but I assume 'kill Nexus' and 'launch Pixel' were independent decisions, the latter unforeseen at the time of the former.