Ron, if it's correct that what really got Williams fired was Bill O'Reilly's referring to him, on Fox News, as an NPR news analyst and Williams not objecting to that, then NPR isn't selectively enforcing its policies.
There's also, of course, the issue of how outrageous or damaging an expressed opinion may be.