When I got my first digital DSLR in 2004, it was a Fuji S2. That camera had only 6 megapixels. When framing my subjects, I did the same as I would have framing in the film days, trying to get the framing done without any post processing cropping. With a 6 meg file, you couldn't do much cropping and retain all the quality of the image.
I used that camera for a few years and with the next generation of digital cameras, I had now 12 megapixels, but still continued to frame my subjects to prevent any post processed cropping.
As the camera's megapixels continued to move to larger numbers, I would hear photographers say they are now just shooting larger areas, and cropping what they want, and not losing any image quality with the larger megapixels in the camera.
Next camera was up to 16 megapixels but even though other photographers were telling me they were shooting larger areas of the subjects, and cropping out what they wanted, I still continued to frame so I needed to crop less.
Next was my Nikon D7500 which was 20 megapixels, so I test shot subjects framing larger areas, and did some tight crops, and found that the image quality was pretty good.
My latest camera, a mirrorless Fuji X-T30 MKll has 26 megapixels, and my post processing crops are getting even smaller.
So now, my new philosophy is to frame a larger area, and crop in post.
It does make it easier and saves me time on framing, as I don't have to be so precise in the field.