It's all about where you ditch and if you were pinged.
If you ditch in friendly territory (=closest base to you is a friendly one) you will get always a "ditched", no matter if you had been hit or not.
If you ditch in enemy territory, you will get at least a "captured" - if you had been pinged by an enemy before and this enemy is still up, he will get a kill on you, no matter where he is. If you had not been hit at all, an enemy needs to be in proxy range to get the kill on you.