Wikipedia on the redshirt v. stormtrooper paradox :

Taking into consideration the nature of Redshirts in Star Trek (minor characters who usually die quickly after being introduced), the pseudo-philosophical question of "What would happen if Imperial Stormtroopers and Redshirts got in a firefight?" is well-known among fans of both series. It’s a paradox, because even though it’s a redshirt’s destiny to die quickly at the hands of the enemy, Stormtroopers simply wouldn’t be able to kill them due to their poor combat skills.