APM flight stack vs PX4 flight stack?

I am trying to decide whether to use the APM flight stack or native PX4 stack on my Pixhawk. What are the differences and which one would you recommend, as in reliability, performance? I will be writing some code for my own project, which is a SLAM quadcopter. Thanks a lot!