I've always believed, and I still think it would be true - if Nokia would adopt Android, they could probably even beat Samsung. It would've certainly been true if they did it 2-3 years ago, before Samsung got a chance to become the king of smartphones, but I think it can still happen if they do it now, and wait 2-3 years for it to happen. Obviously it won't happen overnight, but at least they have a shot at it with Android.
They'll never do it with WP8. The math just doesn't add up. They'll always be limited by the WP ecosystem and the WP market share. Samsung has 30% of the smartphone market, which is about 40% of the Android market share.
Nokia will have at most 50% of the WP market share. It only has more now because the market is very tiny, but that would change if WP market grew. That means that for Nokia to beat Samsung, WP will need to get to 60% of the smartphone market share, and it means beating Android in market share. WP will never get that much market share, and even the most optimistic (and I believe, unrealistic) predictions by research firms put WP at 20% - 5 years from now.
So if Nokia wants to stop being more than a niche smartphone player in the future, they'll have no choice but to at least also adopt Android. It's the right strategy for the Nokia board to pick. They just seem to be very stubborn about it, just like they were too stubborn to fire the Nokia CEO before Elop, for 4 years after the iPhone launched. The Nokia board needs to smarten up if they don't want to make an almost fatal mistake once again. Or the shareholders need to overhaul the board. One of the two needs to happen.