We were driving on a local road and saw the car ahead parked at the traffic light. We began to brake from a safe distance. The car began slowing but instead of coming to a full stop, the brake resisted, the car made an odd sound, and instead the car accelerated into the car in front of us. The Tesla in front captured the odd behavior of the vehicle on camera. BMW will perform diagnostics.