If someone sends you a pull request, it's rude to close it in favor of your own commit that does the same thing with small adjustments. If changes are needed to the PR in order to merge it, ask for them. The person is literally asking to collaborate with you. Implementing their suggestion without their name attached is stealing credit. It also discourages them from collaborating with you in the future.