The slotted rotors are 99% cosmetic. Hypothetically, in high heat / racing types of situations (with appropriate racing pads) you can get some pad glazing where the surface of the pad becomes slippery. The slot wipes away that glazed surface. If there were any gas trapped under the pad (pad material is porous, and doesn't sit flat on the rotor, so it's unlikely), the pushback from the tiny amount of gas would be nothing compared to the hydraulic pressure of the braking system.
The downside to the slots, as mentioned, is that you reduce the pad contact area on the rotor. Also, machining out the slots removes thermal mass, and you need the thermal mass to absorb heat in hard stops. Even those few grams count.
One plus side of the slots is that it should interrupt the higher frequency nodes, making it less likely to have high frequency squeal. The pads, backplates and calipers might still squeal, but not the rotor. But it might all be overshadowed by the grinding sound of the slots anyway.
I designed brakes for 9 years.