A former Thames Valley Police officer who made sexual comments about colleagues and members of the public would have been fired if he hadn't quit the force, just before his misconduct hearing was due to start.