Comparing cavity and ordinary laser cooling within the Lamb–Dicke regime