It didn't make sense for Hazel to nonconsensually cum in some stranger's coffee.
So instead we have a character moment that is more impactful and building toward his arc.
The scene will still happen, but when you're actually with Hazel and it will be consensual.