I don't think it's related to Asimov at all. Many people think of it as "High Noon" in space. Hyams is on record as wanting to do a Western, but had to set it in space to get it made.I think it is related to a story by Asimov. How closely related, I don't know though.

You obviously (a) didn't bother to read about DC's Vartox and of course (b) missed the joke completely.