Never mix your writing and editing. Don’t do it simultaneously.
Your writing and your editing are 2 different tasks.
Write first. Vomit on the page. Put that idea on a piece of paper.
Then go away.
Take a pee break.
Now edit it.
Don’t do both at the same time.