Same-sex marriage clears last hurdle in UK

Can the Queen actually withhold royal assent on a bill? I mean, yes, technically she’s probably allowed to, but if she actually did, things would get really messy I assume.