I personally wouldn't be comfortable with anything not hardware mounted for the top of the steps
Me too. Drilled holes can be filled and painted over and noone would even know it ever happened.
Another factor is whether this is a secondary precaution and the baby won't typically be roaming the upstairs floor unsupervised, or if this is for regular household use and the baby will be pressing against this gate screaming on a regular basis.