Obviously this is impossible in cartridge, but if you're asking on Showdown, no. Holding a Mega Stone forces a Pokemon to Mega, holding a z-crystal forces it to Z, and if you have neither you can dynamax/gigantamax.
This isn't an answer, someone else could do the testing on showdown and share the replays