Remove related posts from any post

You can remove the related post from any post by action hook, please see the code sample, note the variable  $excluded_posts add your posts ids you want to exclude

add_action('related_post_main', 'remove_related_posts', 2);

function remove_related_posts(){

    if(is_singular(array('post'))){
        $excluded_posts = array(1749,1234);
        $post_id = get_the_ID();

        if(in_array($post_id, $excluded_posts)){
            remove_action('related_post_main' ,'related_post_main_title');
            remove_action('related_post_main' ,'related_post_main_post_loop');
        }
    }
}