I've never been the first to be let go. It turns out if you do valuable work, people notice that and want to keep you around. On the other hand, when I had jobs based on a personal connection, it was almost the opposite. I was treated almost like an imposter. The conventional wisdom on this is just stupid. No one is going to keep you on just because you're a good buddy. Being useful always comes first.