Can a druid wildshape into a larger form while surrounded?

Let’s say a druid is surrounded by enemies. Maybe they’re in a 10ft wide corridor with 2 humanoid enemies on either side. Can they still wildshape into a larger creature? If they can, are the humanoids launched away, or does the druid have to immediately start squeezing?