aptX and AAC are both audio codecs for use over Bluetooth. Both deliver high-quality audio through audio compression. You can read up on the differences here. I have enabled both codecs on Macbook Pro (13-inch, 2020, Two Thunderbolt 3 ports) running Ventura.
To enable aptX, issue the following command in the terminal:
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
To enable AAC, issue the following command in the terminal:
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true
Use this command to verify your configuration:
sudo defaults read bluetoothaudiod
You should see output similar to this:
If you are scared of the terminal, you can check out a GUI way of doing it: https://www.idownloadblog.com/2021/05/13/how-to-improve-bluetooth-audio-mac/.