Loud clicking that matches acceleration

2013 Dodge Avenger 2.4l

Last week I was driving home, 35mph, when I heard a loud metal clunk from the engine. Seconds later my AC stopped working and there is a loud clicking noise that matches the rpms.

Any help or ideas would be great.

Perhaps the clutch on the A/C compressor is at fault.

Would that explain the clicking?