For the sake of being precise - the “form_with” is not equivalent to the presented HTML. The form_with helper injects an additional hidden input element that makes sure that the form cannot be submitted “illegally”.
Note: I totally agree that we should strive to go HTML first. However, this specific example is a bit unfair.