My DD was born at 36w2d - I took her home three days later the same as a full term bub.
She was a good weight at 7lb3oz, had no breathing issues and feeding well so there was no reason for us to stay.

My best friend had her son at 35w and he stayed for two weeks - his sucking reflex wasn't developed properly and it took until 37 weeks before he would feed well enough that they were able to take him home.

It really does depend, there are even some babies born at 37 weeks - which is technically term but on the early side - that have breathing and feeding issues and need longer in hospital than my 36w DD.