Call dealership and saying the vehicle was already sold out

The internet salesman sent me a link to a car that was listed as available. I contacted the dealership to follow up on some of the information they provided via email. However, the manager informed me that the car has already been sold and offered a different trim instead. I’m confused because, during our email correspondence, the car was still listed as available on both the dealership website and the CarEdge website. Are they holding the vehicle?