Step sync from Apple health reliable?

I see a lot of discrepancies between what the app is saying and Apple health is saying about my daily step count. Today the app downgraded several days where I got my 10k and is saying I didn’t. That’s so demotivating. Apple health still says I did.

Does anyone know why the app and Apple health aren’t perfectly in sync for step counts?

I don’t have an Apple Watch, just my phone…