Don't attach comments with mismatched indents (#12604)
## Summary
Given:
```python
def test_update():
pass
# comment
def test_clientmodel():
pass
```
We don't want `# comment` to be attached to `def test_clientmodel()`.
Closes https://github.com/astral-sh/ruff/issues/12589.