I strongly doubt D&D will get rid of alignment fully... for player characters and most sentient monsters, maybe. But their cosmology depends too much on it to remove it completely.
And yes, I like alignments as a game mechanic and will certainly continue to use them.
One day, one day there will be a game that attempts to adapt actual ethics and ethical philosophy into its alignment system, and I will be all for it. Giving multiple systems of values, like utilitarianism, virtue ethics, universalist hedonism, stoicism, Nietzscheanism, etc, etc. And you would have a percentage adherence to various ethical systems, and the problems presented to you wouldn't be a simple boiling down of ethical reality along a binary, but a competition between conflicting value systems. And reaching certain milestones in adhering to certain value systems would open up decisions and define your combat and gameplay experience. One day.