My tools serve me, not the other way around. It’s not worth the time and effort to wash by hand or sharpen on a whetstone. I don’t need an expensive knife to cook at home. A pull through sharpener and honing steel are adequate. Get the right material and you don’t have to worry about the metal in the dishwasher.
Water corrodes the edge. Razors stay sharp for much longer as well if you store them in mineral oil after use rather than just put it onto the shelve while still wet.