Washing the chicken doesn’t fix the problem you’re concerned with though. If it did you could wash the chicken and then just eat it raw.
The bacteria is inside the chicken, potentially, where you can’t possibly remove it by washing. That’s why you have to cook it.
Cooking kills the bacteria, and if you have to cook it then the only thing washing will do is spread any surface bacteria around to other surfaces and gives you wet chicken.
What soap do you use to wash your chicken?
Washing the chicken doesn’t fix the problem you’re concerned with though. If it did you could wash the chicken and then just eat it raw.
The bacteria is inside the chicken, potentially, where you can’t possibly remove it by washing. That’s why you have to cook it.
Cooking kills the bacteria, and if you have to cook it then the only thing washing will do is spread any surface bacteria around to other surfaces and gives you wet chicken.