We have GitHub Organization plugin with declarative pipeline.
Our pipeline looks for running builds of the same branch/PR and if any are detected, it kills other builds (if these are older than this one) or itself (if there are newer builds). It uses build number to determine which one is newer.
If two builds are running in this way, and one of them is killed, the build status in GitHub does not update, and still points to the build that started first.
This sometimes (but not always) is updated to the later build once that finishes.