Online defensive driving classes tend to be cheaper. They may also offer more flexible schedules and can be taken from anywhere.
However, in-person courses are more hands-on. It is easier to clarify questions and concerns. Additionally, there is a risk of online courses not being accredited. In-person classes may also only take one day.