Load WordPress core but with specific plugins

This seems to be the way:

add_filter( 'option_active_plugins', 'disable_plugins' );

function disable_plugins($plugins){
    return []; // you can define specific plugins you want to load here.
}