You run tests against each commit in the history that you're rebasing? I doubt it, and I guarantee that nearly nobody using rebase does that.
In my experience people are not running tests locally at all. Push to the remote, open pull request and wait for pipeline results.
In such situation the result will be the same: you will never know which commit from merge/rebase brakes your pipeline tests.