If I want to force use of the built in flash ( to fill in dim subject against bright background ) I can use P mode and it will use a shutter speed between 60th and 200th to ensure the flash fires.
That works great outdoors in daylight.
However in a dim environment, in P mode with the built in...