Removing Default Panels From Gutenberg Document Setting Panel (sidebar)

import { store as editPostStore } from '@wordpress/edit-post';

Is not the same as

const { editPostStore } = wp.editPost.store;

In the first line store is editPostStore, but in your second line editPostStore is a property of store, but it doesn’t exist.

The correct syntax is

const editPostStore = wp.editPost.store;

Or

const { store: editPostStore } = wp.editPost;