First of all you need to be aware that both controllers are not what you would call "general MIDI controllers".
The AKAi APC 40 MK2 is mainly designed to be used with Ableton, the Behringer is a DAW controller.
So both units have a typical lay out and some specific features that are usefull for Ableton or DAW, but are not obvious for a Light controller.
As long as you use the controller only as input to QLC, you can get them both to work (thanks to the Auto Detect function of QLC).
The moment you also want QLC to feedback to the controller it becomes more difficult, because both manufacturers have given a twist to the original MIDI definition to add extra functionalities.
Behringer has specific modes where they use a range of SYSEX messages to have the X-Touch to communicate with their X-AIR digital mixers, as in QLC you can only send one SYSEX as an initialisation this will not be available for you.
AKAI has redefined the "Midi Channel" and uses it to control the "mode" of the RGB Buttons (Brightness, Blink, Dim). If you follow some other threads on this forum, you will notice that AKAI is not very supportive with documentation (they rely on Ableton to do the support) and it is quite a puzzle to get FeedBack working.
Furthermore, if you use multi page frames in QLC, it will require a lot of work to initialise the color buttons everytime you change a page.
The two units both have specific features, which make them more or less suitable depending on your needs (the type of show you are running with QLC).
If you prefer to use faders, go for the Behringer as it has touch sentive motorised faders. They are a lot better than those of the AKAI.
If you are looking for RGB buttons to use as a Color Selector, you should go for the AKAI (as the Behringer does not have those).
If you ask me, i would go for the Behringer for the Faders and also buy an AKAI APC Mini MK2 for the RGB buttons as a Color Selector (in fact it is more suitable for QLC than the APC 40, so why spend the extra money for features you will not use).
To be honest: i have a Behringer BCF2000 and an AKAI APC mini mk1, but i prefer to use an Elation Midicon. In combination with a 24 inch touch screen that works best for me.