Force Finder and Trash to stop using external drive so Disk Utility can erase
I shut down, unplugged the drive, started up, logged in, plugged in the drive and quickly opened Disk Utility and clicked erase, and it just worked.

I'm not sure if it matters that I did that fairly soon after logging in.

I'm not sure if it matters that I didn't open a Finder window or the Trash.