Perfect homework that you did teaches your child they're incapable. Messy homework they did themselves teaches them they can struggle and figure things out.
The goal isn't a perfect assignment. It's a child who believes they can solve problems, ask for help when stuck, and persist through difficulty.
These skills matter infinitely more than getting all the answers right.