The answer is, and always should have been, a change-over switch so you have a male socket for feeding power in (i.e. safe to touch female plug on the inverter output) that can never be live as is is only connected when the mains supply is disconnected. Or have the inverter hard-wired to the change-over switch if the inverter is not frequently removed.
If you only need 16A or less you can use the IEC style C19/C20 that you see on the likes of 3kVA UPS, they are muhc smaller than commando style connectors (but not as strong, watrerproof, reliable, etc, so pay your money and take your choice).
It is absolutely insane to have a live plug, further to have the potential to be in parallel with the AC supply without means of isolating/shutting down on supply failure to protect utility workers from back-feed!