Most do, at least in most countries.
Not by default, but you have to enable it in developer settings, and then it does a full wipe, so if you plan to root your phone anyway, you do that when you buy it (buy, test hardware, oem unlock + factory reset, root, actually start using).