That's an interesting hack as autocomplete=new-password will generally disable autocomplete.
Though it may not work every time, as browsers & password managers might also suggest new passwords (following whatever their internal generation rules are).