Downsides of using squash merging

Thanks. It’s a little confusing, since if you run something like git log --oneline main for the case above, you see this,

3fa3972 Another main branch commit.
b79f320 Merge pull request #25 from my-repo/my-branch  
b107569 Third commit on mybranch.
b8be6ff Second commit on mybranch.
f525f0b First commit on mybranch.
7972188 Another main branch commit.
679e8f5 Main branch commit.

which makes it look like those intermediate branch commits are in fact considered to be on the main branch.

I don’t know what git log --oneline main would look like for a case similar to the above but where there are additional commits on main before mybranch is merged into main.