A heart attack is a pump problem. It happens in your chest, inside the muscle that squeezes blood around your body.
A stroke is a brain problem. It happens inside your skull, where the wiring for thoughts, movement, and speech lives.
So, one is about the engine. The other is about the computer that drives the car. Totally different zip codes.