Comparing strictly SSR yes. Though if one needs a lot of dynamic client side behavior a JS framework can be easier to reason about.
Lately modern PHP frameworks have so a lot of dependencies too. So both stacks are getting fatter as their capabilities grow.