Opening or crushing a hard capsule or soft capsule is generally not recommended.
The galenic form has been designed to allow release of the active ingredients at the right time and in the right place in the body. Modifying it could therefore reduce its bioavailability.
As for the tablets, this does not affect their quality so you can perfectly do it.
On the other hand, if you have difficulty swallowing capsules, this is still possible. However, there is an exception for softgels, where the container is a liquid, and for Probiotics, where the capsule is essential to protect the bacteria all the way to the intestines.