In Apple Mail, How can I delete a message without moving to the next one, causing the next one to be marked as read? I typically leave messages as unread if I need to remember to read them later.

Also I like to keep my inbox clean, so I delete mail I don't care about saving.

When I select a message and press delete, the selection jumps to the next item in the list. Many times, this is the item I just marked as unread for later.

How can I avoid this?
The easiest (albeit slightly lengthy) way to do this is to create a custom service, like so:

Create a new Automator Service. Have it take no input in Mail and put the following code into a "Run JavaScript" action:

mail = Application('Mail')
mail.includeStandardAdditions = true
for (i in mail.selection()) {
    mail.selection()[i].delete()
}


Save the service. Then go to System Preferences > Keyboard, select Shortcuts at the top, and select Services in the sidebar. Scroll to the bottom to where it says "General" and you should see your Service there. Assign it a keyboard shortcut. This shortcut (so long as it does not conflict with any existing shortcuts) will allow you to delete a selected Mail message without selecting the next conversation.