I much prefer in-person, but have done online during Covid and after.
For some reason, I can't tolerate playing online for long; those sessions are generally short.
Though, even when playing in person I've pulled up the likes of Roll20/One More Multiverse to do battlemap combats rather than...