Cosmic censorship and the role of pressure in gravitational collapse