Motor stuck-humming

Motor stuck when trying to start DW. Can use a screwdriver to free it up and it runs fine through entire cycle. I don’t mind fixing it, I just want to make sure I get the right part, i.e., motor or selenoid?:smiley:

P.S. Sometimes dishwasher starts just fine.

if it continues to act up this replace pump +motor assembly