Yep, I'd sacrifice myself if that was what was asked instead. The reason I mentioned "killing a random person on the street" is that it's more informative - it sets a higher bar for the required world improvement. My morals say that killing someone else without reason is strictly worse than killing myself, so there exist possible world improvements for which I'd agree to kill myself, but refuse to kill a random person.