A Comparative Study of Artificial Potential Fields and Safety Filters