Gas is the worst for air quality, in particular with certain types of cooking and the self cleaning cycle some have.
But people with electric cooking devices can still have high pollutant levels without proper ventilation.
https://ww2.arb.ca.gov/resources/documents/residential-cooki...