I think this logic is equiv. and will perform better. The niche is if t and p are gap, but that should never happen

```python
for t,p in zip(target_hit, primer_hit):
    mismatches += t != p
    gaps += (t == '-') or (p == '-')
mismatches -= gaps
```