If you haven't already watched this video and the rest of them, I highly recommend watching the practical pid tuning videos from Joshua Bardwell:
https://www.youtube.com/shared?ci=-QvJgQgtEZ0
If you got bouncebacks at the end of a roll or pitch maneuver, you can probably raise d a little bit, but again, keep in mind your motor temperature. D is very sensitive to noise from the motors and gyro sensor noise, and turning up d too much on a noisy setup will maybe not be noticed on the flying characteristic, and it will sometimes even be better, but if you look at the Blackbox log, you can clearly see if the d is too high. If it is very noisy and the lines are much higher than the P and your motors are hot, then you probably have too much D.
You can think of the P and D as a spring and a damper. If your P is too low, the response will be soft, with large motion bouncebacks, while turning it up will stiffen up the motion Just like a stiffer spring you will get smaller, but more rapid bouncebacks. To prevent these bouncebacks, we introduce a damper D to the system. When you turn up D, you stiffen up the damper to dampen these bouncebacks that P was not able to get rid of. As you can see, P and D are highly dependent on each other, just like a spring and a damper on a car.
If you really want to tune your quad to "perfection" I would recommend start using betaflight as soon as betaflight 3.0.0 is released. It is currently in release candidate mode now, but I read that they still find bugs in the code and doing some cleanups.
Betaflight 3.0.0 introduce promising notch filter which should be able to remove the motor noise picked up by the gyro and should result in the ability to run with higher P- and D-term so you would get an even more "locked in" feeling.
The new betaflight blackbox Explorer also introduces a spectrum analyser so you can see at which frequency your motor noise is appearing, and using the notch filter to remove this noise.
If you are interested, Joshua Bardwell again has some great videos on YouTube talking about many of these new features, and as soon as the final version of betaflight 3.0.0 is released, he said he will be releasing videos about all the new features