I have cheap kitchen knives for fast and dirty jobs. Slicing a sandwich, chopping one onion. Those I run through the dishwasher. It’s convenient. When necessary I spend a few bucks to get another set.
If I’m doing a real cooking job I used my good knives, and hand wash them afterwords. Dry them immediately, put them away.