What is the reliable approach to fetch a consistent and complete list of installed applications?

Is system_profiler the recommended approach for retrieving installed application data on macOS?

If not, what is the preferred and reliable alternative to fetch a consistent and complete list of installed applications?

What is the reliable approach to fetch a consistent and complete list of installed applications?
 
 
Q