Nokia couldn't do what Samsung did. They lacked factories for NANDs, CPUs, RAM, screens, camera sensors.
Even if they could do Maemo, there would've been no apps - Microsoft failed to attract enough devs, given that there were already 10M .NET devs out there.