It's only railroading if the players feel railroaded It's more of an "emotional truth" that has little directly to do with the GM's intentions or preparations, and everything to do with how the session plays out in actuality.
If your GM gave you a chance to be awesome, and allowed you make the decisions about how to play your PC, then he did his job. The rest is just window dressing.
If you want examples of "good" railroading, look at the OT. Falcon was railroaded into the Death Star. The main characters had no choice in getting caught (unless you count letting the TIE fighter escape and tell the Empire where they are).
In fact, looking back, most of the OT would be considered a "railroad" by a lot of gamers. Deliver plans to Alderaan. Caught by Death Star. The battle of Hoth. Attack the Death Star. Twice. They did have some character agency, (Dagobah, Cloud City, Jabba's Palace) but a lot of railroading. But the railroading was to get them into a situation, and the characters had a lot of leeway in how to deal with the situation.